Skip to content

Commit

Permalink
travis: only deploy commits on the master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed May 15, 2017
1 parent e90e6ea commit 566a785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PROJECT_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}
# Don't deploy pull requests (there are no secrets, anyway)
# And don't deploy releases, they are already deployed by the updater before this,
# and are signed.
if [[ "${TRAVIS_PULL_REQUEST}" = "false" && $PROJECT_VERSION == *"-SNAPSHOT" ]]; then
if [[ "${TRAVIS_PULL_REQUEST}" == "false" && $PROJECT_VERSION == *"-SNAPSHOT" && "$TRAVIS_BRANCH" == "master" ]]; then
mvn clean deploy --settings travis/settings.xml
else
mvn clean verify --settings travis/settings.xml
Expand Down

0 comments on commit 566a785

Please sign in to comment.