forked from phoedos/pmd
Fix travis build for releases (refs #376)
This commit is contained in:
@ -47,7 +47,7 @@ deploy:
|
|||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
repo: pmd/pmd
|
repo: pmd/pmd
|
||||||
condition: "${TRAVIS_SECURE_ENV_VARS} = true"
|
condition: "${TRAVIS_SECURE_ENV_VARS} = true && ${BUILD} != sonar"
|
||||||
after_deploy: bash .travis/release.sh
|
after_deploy: bash .travis/release.sh
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
echo "BUILD: $BUILD"
|
||||||
|
if [ "${BUILD}" != "deploy" ]; then
|
||||||
|
echo "Skipping deployment script, it needs to run only once"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
RELEASE_VERSION=$(./mvnw -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.5.0:exec | tail -1)
|
RELEASE_VERSION=$(./mvnw -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.5.0:exec | tail -1)
|
||||||
|
|
||||||
# Deploy to ossrh has already been done with the usual build. See build-deploy.sh
|
# Deploy to ossrh has already been done with the usual build. See build-deploy.sh
|
||||||
|
Reference in New Issue
Block a user