From 584e23454e1b1b028bda8b18e1b70136bfe8098e Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 10 May 2017 14:37:19 +0800 Subject: [PATCH] run benchmark tests with the race detector on Travis --- .travis/script.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis/script.sh b/.travis/script.sh index 94d60a58..6c56eb25 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -8,6 +8,13 @@ if [ ${TESTMODE} == "unit" ]; then fi if [ ${TESTMODE} == "integration" ]; then + # run benchmark tests ginkgo --randomizeAllSpecs --randomizeSuites --trace --progress -focus "Benchmark" + # 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 -focus "Benchmark" + fi + # run integration tests ginkgo -v -r --randomizeAllSpecs --randomizeSuites --trace --progress integrationtests fi