Update travis scripts

- Split sonarqube goal into its own script. Now sonar runs only
  after unit tests succeed.
This commit is contained in:
Rsl1122 2019-01-03 12:38:25 +02:00
parent ea2bc982f2
commit 19dbf232bb
3 changed files with 9 additions and 10 deletions

View File

@ -19,6 +19,7 @@ jobs:
name: "Unit tests"
before_script: bash scripts/prepareTestEnv.sh
script: bash scripts/runTests.sh
after_success: bash scripts/sonar.sh
- stage: "System Tests"
name: "Test environment setup"
script: bash scripts/prepareServerJars.sh

View File

@ -1,10 +1,3 @@
cd Plan
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
gradle test --info
fi
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
gradle test --info
gradle sonarqube
fi
cd $HOME/Plan
gradle test --info
cd $HOME

5
scripts/sonar.sh Normal file
View File

@ -0,0 +1,5 @@
cd $HOME/Plan
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
gradle sonarqube
fi
cd $HOME