Skip to content

Commit

Permalink
travis: don't deploy releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Apr 28, 2017
1 parent 1cbb314 commit a46f967
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion travis/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash

if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
PROJECT_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec`

# 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
mvn clean deploy --settings travis/settings.xml
else
mvn clean verify --settings travis/settings.xml
Expand Down

0 comments on commit a46f967

Please sign in to comment.