Skip to content

Commit

Permalink
check for travis secure env vars before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Cihat Keser committed Mar 28, 2016
1 parent 7b80fdb commit 418c5b1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;

0 comments on commit 418c5b1

Please sign in to comment.