Skip to content

Commit a587268

Browse files
committed
Fix the Travis configuration
Without this, failed builds of master trigger another "mvn install". See: https://gist.github.com/ctrueden/ae0f024a0cdf2cb53c915d75b0759553
1 parent 54d6f5c commit a587268

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis/build.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/sh
22
dir="$(dirname "$0")"
3-
test "$TRAVIS_SECURE_ENV_VARS" = true \
3+
if [ "$TRAVIS_SECURE_ENV_VARS" = true \
44
-a "$TRAVIS_PULL_REQUEST" = false \
5-
-a "$TRAVIS_BRANCH" = master &&
6-
mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml" ||
5+
-a "$TRAVIS_BRANCH" = master ]
6+
then
7+
mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml"
8+
else
79
mvn install
10+
fi

0 commit comments

Comments
 (0)