Commit 8427bce8 by Johannes Edmeier

Fix .travis.yml

Since the build errors when a before_install script fails when the exitcode is non-zero we have to use bashs regular if-then-else syntax to return a zero exitcode when $TRAVIS_TAG is not set.
parent 6289d884
......@@ -5,7 +5,7 @@ before_install:
- openssl aes-256-cbc -d -pass "env:DECRYPT_KEYPHRASE" -in .gnupg.tar.enc | tar xv
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "[[ ${TRAVIS_TAG} != '' ]] && mvn versions:set -DnewVersion='${TRAVIS_TAG}'"
- "if [[ ${TRAVIS_TAG} != '' ]]; then mvn versions:set -DnewVersion='${TRAVIS_TAG}'; fi"
script: mvn clean verify
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment