Move travis test runner script to own file so it's easier to work with

This commit is contained in:
idk
2021-01-02 09:12:02 -05:00
parent 659ab97f69
commit 139594df8f
2 changed files with 8 additions and 6 deletions

View File

@ -28,12 +28,7 @@ env:
- SONAR_SCANNER_OPTS="-Xmx2048m" - SONAR_SCANNER_OPTS="-Xmx2048m"
script: script:
- | - travis_wait 45 ./tests/scripts/travis.sh
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk11" ]; then
./gradlew sonarqube codeCoverageReport -Dsonar.verbose=true
else
./gradlew check codeCoverageReport
fi
after_success: after_success:
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)

7
tests/scripts/travis.sh Executable file
View File

@ -0,0 +1,7 @@
#! /bin/sh
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk11" ]; then
./gradlew sonarqube codeCoverageReport -Dsonar.verbose=true
else
./gradlew check codeCoverageReport
fi