From 566a785ebf811184976c0921aa92d5a78600ab62 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 15 May 2017 17:25:36 -0400 Subject: [PATCH] travis: only deploy commits on the master branch --- travis/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis/build.sh b/travis/build.sh index 242f8e75f4..28eab54eaf 100755 --- a/travis/build.sh +++ b/travis/build.sh @@ -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