diff --git a/.travis.yml b/.travis.yml index 2030ae91..61f67cd5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ jobs: env: TEST_SUITE=non_srv_pkg_tests - name: "Compile and various checks with older Go release" go: 1.17.x - env: TEST_SUITE=compile + env: TEST_SUITE=build_only script: ./scripts/runTestsOnTravis.sh $TEST_SUITE diff --git a/scripts/runTestsOnTravis.sh b/scripts/runTestsOnTravis.sh index 12b0bc6d..8f42cc62 100755 --- a/scripts/runTestsOnTravis.sh +++ b/scripts/runTestsOnTravis.sh @@ -19,6 +19,9 @@ if [ "$1" = "compile" ]; then go test -race -v -run=TestVersionMatchesTag ./server -count=1 -vet=off fi +elif [ "$1" = "build_only" ]; then + go build; + elif [ "$1" = "no_race_tests" ]; then # Run tests without the `-race` flag. By convention, those tests start