Skip to content

Commit

Permalink
Fix the Travis configuration
Browse files Browse the repository at this point in the history
Without this, failed builds of master trigger another "mvn install".

See: https://gist.github.com/ctrueden/ae0f024a0cdf2cb53c915d75b0759553
  • Loading branch information
ctrueden committed Apr 26, 2017
1 parent 95f12d6 commit bee9918
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/sh
dir="$(dirname "$0")"
test "$TRAVIS_SECURE_ENV_VARS" = true \
if [ "$TRAVIS_SECURE_ENV_VARS" = true \
-a "$TRAVIS_PULL_REQUEST" = false \
-a "$TRAVIS_BRANCH" = master &&
mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml" ||
-a "$TRAVIS_BRANCH" = master ]
then
mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml"
else
mvn install
fi

0 comments on commit bee9918

Please sign in to comment.