Files
quic-go/.travis/script.sh
2017-08-27 18:09:01 +07:00

21 lines
729 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
go get -t ./...
if [ ${TESTMODE} == "unit" ]; then
ginkgo -r --cover --randomizeAllSpecs --randomizeSuites --trace --progress --skipPackage integrationtests,benchmark
fi
if [ ${TESTMODE} == "integration" ]; then
# run benchmark tests
ginkgo --randomizeAllSpecs --randomizeSuites --trace --progress benchmark -- -samples=1
# 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 --progress benchmark -- -samples=1 -size=10
fi
# run integration tests
ginkgo -v -r --randomizeAllSpecs --randomizeSuites --trace --progress integrationtests
fi