Files
quic-go/.travis/script.sh
Marten Seemann 305d6e0fbe make the benchmark suite compatible with Go 1.13
Unfortunately, there doesn't seem to be a way to keep the samples flag.
2019-09-05 10:08:51 +07:00

28 lines
773 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
if [ ${TESTMODE} == "lint" ]; then
./bin/golangci-lint run ./...
fi
if [ ${TESTMODE} == "fuzz" ]; then
.travis/fuzzit.sh
fi
if [ ${TESTMODE} == "unit" ]; then
ginkgo -r -v -cover -randomizeAllSpecs -randomizeSuites -trace -skipPackage integrationtests,benchmark
fi
if [ ${TESTMODE} == "integration" ]; then
# run benchmark tests
ginkgo -randomizeAllSpecs -randomizeSuites -trace benchmark -- -size=10
# run benchmark tests with the Go race detector
# The Go race detector only works on amd64.
if [ ${TRAVIS_GOARCH} == 'amd64' ]; then
ginkgo -race -randomizeAllSpecs -randomizeSuites -trace benchmark -- -size=5
fi
# run integration tests
ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests
fi