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"
|
name: "Unit tests"
|
||||||
before_script: bash scripts/prepareTestEnv.sh
|
before_script: bash scripts/prepareTestEnv.sh
|
||||||
script: bash scripts/runTests.sh
|
script: bash scripts/runTests.sh
|
||||||
|
after_success: bash scripts/sonar.sh
|
||||||
- stage: "System Tests"
|
- stage: "System Tests"
|
||||||
name: "Test environment setup"
|
name: "Test environment setup"
|
||||||
script: bash scripts/prepareServerJars.sh
|
script: bash scripts/prepareServerJars.sh
|
||||||
|
@ -1,10 +1,3 @@
|
|||||||
cd Plan
|
cd $HOME/Plan
|
||||||
|
gradle test --info
|
||||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
cd $HOME
|
||||||
gradle test --info
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
|
||||||
gradle test --info
|
|
||||||
gradle sonarqube
|
|
||||||
fi
|
|
||||||
|
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