Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2021-07-23 15:36:51 +0300
committerStefan Niedermann <info@niedermann.it>2021-07-23 15:36:59 +0300
commitc4a92cadc055c4fcaf1c4ac713f679dda9f137bc (patch)
tree12defbf66ae696d6ae0b07a2ad231e89995371b5 /build.gradle
parent56fbd241937da48a985dc30e8268e488d41ac27d (diff)
Use multi core for unit test execution
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index b98e36975..0970cb67d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -24,6 +24,12 @@ allprojects {
}
}
+subprojects {
+ tasks.withType(Test) {
+ maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
+ }
+}
+
task clean(type: Delete) {
delete rootProject.buildDir
}