Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: run build and tests in parallel #1009

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -79,6 +79,23 @@ configure(subprojects.findAll() { it.name != 'bots' }) {
reports.html.enabled = false
}

tasks.withType(Test).configureEach {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
}

tasks.withType(Test).configureEach {
forkEvery = 100
}

tasks.withType(Test).configureEach {
reports.html.enabled = false
reports.junitXml.enabled = false
}

tasks.withType(JavaCompile).configureEach {
options.fork = true
}

publishing {
repositories {
maven {
@@ -7,5 +7,5 @@ JDK_MACOS_X64_SHA256="578b17748f5a7d111474bc4c9b5a8a06b4a4aa1ba4a4bc3fef014e079e
JDK_WINDOWS_X64_URL="https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_windows-x64_bin.zip"
JDK_WINDOWS_X64_SHA256="ecbe7f32bc6bff2b6c8e9b68f19cbf4ddf54a492c918ba471f32d645cf1c5cf4"

GRADLE_URL="https://services.gradle.org/distributions/gradle-6.7.1-bin.zip"
GRADLE_SHA256="3239b5ed86c3838a37d983ac100573f64c1f3fd8e1eb6c89fa5f9529b5ec091d"
GRADLE_URL="https://services.gradle.org/distributions/gradle-6.8.2-bin.zip"
GRADLE_SHA256="8de6efc274ab52332a9c820366dd5cf5fc9d35ec7078fd70c8ec6913431ee610"
@@ -0,0 +1,3 @@
org.gradle.vfs.watch=true
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048M