Skip to content

Commit

Permalink
jenkinsfile: Turn down client test parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
jzila committed Jun 16, 2017
1 parent 4216cdb commit 1e07504
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,13 @@ def testGo(prefix) {
println "Running tests on commit ${env.COMMIT_HASH} with ${goversion}."
shell "go get \"github.com/stretchr/testify/require\""
shell "go get \"github.com/stretchr/testify/assert\""
def parallelTests = []
def tests = [:]
for (def i=0; i<dirs.size(); i++) {
if (tests.size() == 4) {
parallelTests << parallelTests
tests = [:]
}
def d = dirs[i]
def dirPath = d.replaceAll('github.com/keybase/client/go/', '')
println "Building tests for $dirPath"
Expand All @@ -393,6 +398,8 @@ def testGo(prefix) {
}
}
helpers.waitForURL(prefix, env.KEYBASE_SERVER_URI)
parallel(tests)
for (def i=0; i<parallelTests.size(); i++) {
parallel(parallelTests[i])
}
}}
}

0 comments on commit 1e07504

Please sign in to comment.