travis: don't deploy releases
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user