Only deploy designated option to artifactory

This commit is contained in:
Greg Turnquist
2018-05-10 13:16:20 -05:00
parent 4e42a83ca8
commit d4539f4ca8
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ before_install:
matrix:
include:
- env: PROFILE=non-existent
- env: PROFILE=non-existent DEPLOY=true
jdk: oraclejdk8
- env: PROFILE=spring5-next
jdk: oraclejdk8

View File

@@ -1,6 +1,6 @@
#!/bin/bash -x
if [ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" -a "${PROFILE}" = "non-existent" ]; then
if [ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" -a "${DEPLOY}" = "true" ]; then
mvn -Pdistribute,snapshot,docs clean deploy
else
mvn clean dependency:list test -P${PROFILE} -Dsort