Skip to content

Commit

Permalink
Use two containers in circle.yml (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
uschi2000 committed Jan 25, 2017
1 parent 992f300 commit 1ef6547
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
16 changes: 15 additions & 1 deletion circle.yml
Expand Up @@ -13,7 +13,21 @@ dependencies:

test:
override:
- ./gradlew build testBouncyCastle testSun
- ? |
set -eu
set -o pipefail

case $CIRCLE_NODE_INDEX in
0)
./gradlew build
;;
1)
./gradlew testBouncyCastle testSun
;;
esac
:
parallel: true
timeout: 1200

deployment:
release:
Expand Down
5 changes: 3 additions & 2 deletions ssl-config/build.gradle
Expand Up @@ -25,8 +25,6 @@ task generateCerts(type:Exec) {
commandLine './certSetup.sh', '-f'
}

tasks.test.dependsOn(generateCerts)

task testBouncyCastle(type: Test) {
configureTestTask(it, 'bouncy-castle')
}
Expand All @@ -35,6 +33,9 @@ task testSun(type: Test) {
configureTestTask(it, 'sun')
}

[tasks.test, tasks.testBouncyCastle, tasks.testSun].each { it.dependsOn(generateCerts) }


private void configureTestTask(Test test, String name) {
test.classpath = test.classpath + project(":pkcs1-reader-${name}").sourceSets.main.getOutput() +
project(":pkcs1-reader-${name}").sourceSets.main.runtimeClasspath
Expand Down

0 comments on commit 1ef6547

Please sign in to comment.