From 06ed8468b87b743f9fa395e15d0e8d9d56abc3ba Mon Sep 17 00:00:00 2001 From: "Michael Vorburger.ch" Date: Wed, 4 Sep 2019 21:44:19 +0200 Subject: [PATCH] fix .travis.yml so that integrationTest does not run if test already failed --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4f9db8f48..2ce0a184b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,5 +51,6 @@ cache: # https://jira.apache.org/jira/browse/FINERACT-732 removed that again, because it made Travis CI fail. script: - date - - ./gradlew --console=plain licenseMain licenseTest licenseIntegrationTest test - - ./gradlew --console=plain clean integrationTest + - ./gradlew --console=plain licenseMain licenseTest licenseIntegrationTest test && ./gradlew --console=plain clean integrationTest +# using "&&" instead of x2 "-" means that integrationTest does not run if test fails, which makes sense. +# @see https://docs.travis-ci.com/user/job-lifecycle/#customizing-the-build-phase