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

github.com/stefan-niedermann/nextcloud-notes.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:12:47 +0300
committerNiedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com>2021-07-26 12:02:08 +0300
commit4aacec24ea306650df34080639eb5cea8eafd878 (patch)
tree621709242f01019bf8a8847628ab3d54cc4407ff /build.gradle
parent04219ae63858373bf7db9aa262df6782a50aeb7a (diff)
Use multithreading 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 76184985..39b29374 100644
--- a/build.gradle
+++ b/build.gradle
@@ -21,3 +21,9 @@ allprojects {
maven { url "https://jitpack.io" }
}
}
+
+subprojects {
+ tasks.withType(Test) {
+ maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
+ }
+} \ No newline at end of file