Skip to content

Commit 89fab8e

Browse files
authored
Use async apis (#10)
- Use async apis instead of sync apis for everything but the S3 download jobs because of aws/aws-sdk-java-v2#953 - Actually make the `threads` setting work: now we can limit the amount of parallel executions with it - Download artifacts after each job has finished and not at the end of all the jobs - Moved the helper functions to separate files Closes #6 #2
1 parent 51c1870 commit 89fab8e

File tree

6 files changed

+235
-175
lines changed

6 files changed

+235
-175
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ dependencies {
7474
compile 'software.amazon.awssdk:s3:2.5.23'
7575
compile 'software.amazon.awssdk:codebuild:2.5.23'
7676
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
77+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.2.0-alpha-2'
78+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.0-alpha-2'
7779
}
7880

7981
task buildJar(type: Jar, dependsOn: classes) {

src/main/kotlin/albelli/junit/synnefo/api/SynnefoOptions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ annotation class SynnefoOptions(
1212
/**
1313
* @return the number of parallel threads
1414
*/
15-
val threads: Int = 5,
15+
val threads: Int = 2,
1616
/**
1717
* @return the run level (feature or scenario level)
1818
*/

0 commit comments

Comments
 (0)