[ci-skip] Skip compiling tests as well as running them when using the -Pfast flag

This commit is contained in:
jmp
2020-12-18 21:17:40 -08:00
parent 3e083217c3
commit d7f18849ec

View File

@@ -13,7 +13,7 @@ internal fun Project.initToothpickTasks() {
if (project.hasProperty("fast")) {
gradle.taskGraph.whenReady {
gradle.taskGraph.allTasks.filter {
it.name == "test" || it.name.contains("javadoc", ignoreCase = true)
it.name.contains("test", ignoreCase = true) || it.name.contains("javadoc", ignoreCase = true)
}.forEach {
it.onlyIf { false }
}