Travis sets version

This commit is contained in:
Nanne Baars 2017-11-16 05:29:26 +01:00
parent 36fcb58caa
commit 39029f604f

View File

@ -7,6 +7,7 @@ install: "/bin/true"
script:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- if [ ! -z "${TRAVIS_TAG}" ]; then mvn versions:set -DnewVersion=${TRAVIS_TAG} fi
- mvn clean install -q
cache:
directories: