aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-09-26 19:41:18 +0800
committerFelix Lange <fjl@twurst.com>2016-09-26 19:41:18 +0800
commitb0a6b979a3f12e91cfbc89850bfaa00c46653e85 (patch)
tree30a4e05def72a416420cf75214dc9bfe1b009d5b /build
parent2e14aff80f294a34f6b28f0149b94fa7b9d3bf81 (diff)
downloadgo-tangerine-b0a6b979a3f12e91cfbc89850bfaa00c46653e85.tar.gz
go-tangerine-b0a6b979a3f12e91cfbc89850bfaa00c46653e85.tar.zst
go-tangerine-b0a6b979a3f12e91cfbc89850bfaa00c46653e85.zip
build: limit test concurrency
TravisCI and AppVeyor run the tests in very slow VMs. Some of our tests can't cope with that. Running less tests in parallel should make them somewhat less flakey.
Diffstat (limited to 'build')
-rw-r--r--build/ci.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/ci.go b/build/ci.go
index 3011a6976..87e8b6275 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -227,6 +227,9 @@ func doTest(cmdline []string) {
// Run the actual tests.
gotest := goTool("test")
+ // Test a single package at a time. CI builders are slow
+ // and some tests run into timeouts under load.
+ gotest.Args = append(gotest.Args, "-p", "1")
if *coverage {
gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")
}