mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-03 06:57:36 +01:00
Update travis scripts
- Split sonarqube goal into its own script. Now sonar runs only after unit tests succeed.
This commit is contained in:
parent
ea2bc982f2
commit
19dbf232bb
@ -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
|
||||
|
@ -1,10 +1,3 @@
|
||||
cd Plan
|
||||
|
||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||
cd $HOME/Plan
|
||||
gradle test --info
|
||||
fi
|
||||
|
||||
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||
gradle test --info
|
||||
gradle sonarqube
|
||||
fi
|
||||
cd $HOME
|
||||
|
5
scripts/sonar.sh
Normal file
5
scripts/sonar.sh
Normal file
@ -0,0 +1,5 @@
|
||||
cd $HOME/Plan
|
||||
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||
gradle sonarqube
|
||||
fi
|
||||
cd $HOME
|
Loading…
Reference in New Issue
Block a user