From 139594df8f43c7604b952e27d3c73e5103c1f8eb Mon Sep 17 00:00:00 2001 From: idk <hankhill19580@gmail.com> Date: Sat, 2 Jan 2021 09:12:02 -0500 Subject: [PATCH] Move travis test runner script to own file so it's easier to work with --- .travis.yml | 7 +------ tests/scripts/travis.sh | 7 +++++++ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100755 tests/scripts/travis.sh diff --git a/.travis.yml b/.travis.yml index f9229f1faf..09cd4b0316 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,12 +28,7 @@ env: - SONAR_SCANNER_OPTS="-Xmx2048m" script: - - | - if [ "$TRAVIS_JDK_VERSION" == "oraclejdk11" ]; then - ./gradlew sonarqube codeCoverageReport -Dsonar.verbose=true - else - ./gradlew check codeCoverageReport - fi + - travis_wait 45 ./tests/scripts/travis.sh after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/tests/scripts/travis.sh b/tests/scripts/travis.sh new file mode 100755 index 0000000000..69d09f9bef --- /dev/null +++ b/tests/scripts/travis.sh @@ -0,0 +1,7 @@ +#! /bin/sh + +if [ "$TRAVIS_JDK_VERSION" == "oraclejdk11" ]; then + ./gradlew sonarqube codeCoverageReport -Dsonar.verbose=true +else + ./gradlew check codeCoverageReport +fi -- GitLab