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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce build time by 35% #354

Merged
merged 2 commits into from
Dec 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 12 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -432,22 +432,6 @@ task test_extra_checks(type: Copy) {
into "${buildDir}/reports/unit-tests"
}

task test_exec(type: Exec) {
dependsOn executeCmake
workingDir "${buildDir}/cmake"
commandLine 'make', 'check'
}

task unit_tests(type: Copy) {
doFirst {
mkdir "${buildDir}/reports/unit-tests"
}
dependsOn test_exec
from "${buildDir}/cmake/unit-tests/"
into "${buildDir}/reports/unit-tests"
}
test.dependsOn unit_tests

task single_test(type: Exec) {
dependsOn executeCmake
workingDir "${buildDir}/cmake"
Expand Down Expand Up @@ -571,13 +555,20 @@ task coverage_cpp_report {
task coverage {
dependsOn coverage_java_report, coverage_cpp_report
}
test.dependsOn coverage

task release {
if (isLegacyBuild) {
dependsOn build, test, javadoc, src_jar
} else {
dependsOn build, test, coverage, javadoc, src_jar
task unit_tests(type: Copy) {
doFirst {
mkdir "${buildDir}/reports/unit-tests"
}
dependsOn coverage_exec
from "${buildDir}/cmake/unit-tests/"
into "${buildDir}/reports/unit-tests"
}
test.dependsOn unit_tests

task release {
dependsOn build, test, javadoc, src_jar
}

task overkill {
Expand Down