ci: faster, stricter CI (instrumented gate, parallel jobs, test forks) (#1348)
This commit is contained in:
6 files changed
+58
-19
No files matched your search
@@ -309,6 +309,13 @@ tasks.named("check") {
|
||||
dependsOn("checkColorLiterals")
|
||||
}
|
||||
|
||||
tasks.withType<Test> {
|
||||
val includeBenchmarks = providers.gradleProperty("includeBenchmarks").isPresent
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
useJUnitPlatform()
|
||||
maxParallelForks = 2
|
||||
// Assertion-free timing probes are opt-in: ./gradlew testDebugUnitTest -PincludeBenchmarks
|
||||
if (!includeBenchmarks) {
|
||||
filter { excludeTestsMatching("*Benchmark") }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user