From bc1858c7eca1f1f502955f23a06bf97486cff81b Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Tue, 25 Jul 2017 11:21:47 +0700 Subject: [PATCH] speed up the CI builds by using the new benchmark test flags Reduce the number of samples and the amount of data transferred. --- .travis/script.sh | 4 ++-- appveyor.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis/script.sh b/.travis/script.sh index 3ddeeed0..b9d88f21 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -9,11 +9,11 @@ fi if [ ${TESTMODE} == "integration" ]; then # run benchmark tests - ginkgo --randomizeAllSpecs --randomizeSuites --trace --progress benchmark + 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 + ginkgo --race --randomizeAllSpecs --randomizeSuites --trace --progress benchmark -- -samples=1 -size=10 fi # run integration tests ginkgo -v -r --randomizeAllSpecs --randomizeSuites --trace --progress integrationtests diff --git a/appveyor.yml b/appveyor.yml index a013bb3b..8a3c9075 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -28,7 +28,8 @@ install: build_script: - rm -r integrationtests - - ginkgo -r --randomizeAllSpecs --randomizeSuites --trace --progress + - ginkgo -r --randomizeAllSpecs --randomizeSuites --trace --progress -skipPackage benchmark + - ginkgo --randomizeAllSpecs --randomizeSuites --trace --progress benchmark -- -samples=1 test: off