From 418c5b1808c38e20790cf87105f136380c885cea Mon Sep 17 00:00:00 2001 From: Cihat Keser Date: Tue, 29 Mar 2016 00:27:52 +0200 Subject: [PATCH] check for travis secure env vars before deploy --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e26bc27c9..263bffc1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ env: before_install: - > - if [ -z "$TRAVIS_SECURE_ENV_VARS" ]; + if [ -z "$TRAVIS_SECURE_ENV_VARS" -o "$TRAVIS_SECURE_ENV_VARS" == "false" ]; then echo "Skipping decryption because secure environment variables are not present."; else @@ -20,7 +20,9 @@ before_install: after_success: - mvn clean cobertura:cobertura coveralls:report - > - if [ -z "$TRAVIS_SECURE_ENV_VARS" ]; - then echo "Skipping deployment because secure environment variables are not present."; - else mvn clean deploy --settings settings.xml -DskipTests=true -B -Psign-artifacts; + if [ -z "$TRAVIS_SECURE_ENV_VARS" -o "$TRAVIS_SECURE_ENV_VARS" == "false" ]; + then + echo "Skipping deployment because secure environment variables are not present."; + else + mvn clean deploy --settings settings.xml -DskipTests=true -B -Psign-artifacts; fi;