diff --git a/.travis.yml b/.travis.yml index e6db2aca3d..6fc0e918dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ before_script: - java -version - ./gradlew assemble script: - - ./gradlew check + - ./gradlew check -Plog-test-progress=true before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ diff --git a/gradle/java-module.gradle b/gradle/java-module.gradle index a0aa2c7bad..07784df33c 100644 --- a/gradle/java-module.gradle +++ b/gradle/java-module.gradle @@ -217,10 +217,13 @@ test { } } -// Log a statement for each test, so that Travis doesn't end up panicking because when there's no output for a long time test { - testLogging { - events "passed", "skipped", "failed" + if ( project.findProperty( 'log-test-progress' )?.toString()?.toBoolean() ) { + // Log a statement for each test. + // Used in the Travis build so that Travis doesn't end up panicking because there's no output for a long time. + testLogging { + events "passed", "skipped", "failed" + } } }