For older versions just check we did not break build step

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2022-06-24 10:54:02 -07:00
parent 4de1766f40
commit a7bb479339
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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