Fixed Travis scripts so e2e are not executed if build fails

This commit is contained in:
Marcin Grzejszczak
2016-01-11 11:03:31 +01:00
parent ff7e4ffa8a
commit 7a97e0f093

View File

@@ -17,9 +17,8 @@ install:
- ./mvnw install -P docs -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then ./docs/src/main/asciidoc/ghpages.sh; fi'
script:
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || ./mvnw -s .settings.xml deploy -nsu -Dmaven.test.redirectTestOutputToFile=true -P integration'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] || ./mvnw install -nsu -Dmaven.test.redirectTestOutputToFile=true -P integration'
- jdk_switcher use oraclejdk8 && sh -e scripts/runAcceptanceTests.sh
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || ./mvnw -s .settings.xml deploy -nsu -Dmaven.test.redirectTestOutputToFile=true -P integration && jdk_switcher use oraclejdk8 && sh -e scripts/runAcceptanceTests.sh'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] || ./mvnw install -nsu -Dmaven.test.redirectTestOutputToFile=true -P integration && jdk_switcher use oraclejdk8 && sh -e scripts/runAcceptanceTests.sh'
env:
global:
- GIT_NAME="Spencer Gibb"