Skip to content

Commit

Permalink
Output test progress log for Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksoichiro committed Dec 1, 2015
1 parent 145c63d commit f680cdf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions library/build.gradle
Expand Up @@ -50,6 +50,18 @@ android {
}
}

// When testing on Travis CI,
// connectedCheck task doesn't output logs for more than 10 minutes often,
// which causes build failure.
// To avoid this, we change the log level for test tasks.
// Test tasks for buildTypes will be defined on evaluation phase,
// so do it on afterEvaluate.
afterEvaluate { project ->
tasks.withType(VerificationTask) {
logging.level = LogLevel.INFO
}
}

apply plugin: 'com.github.kt3k.coveralls'

coveralls.jacocoReportPath = 'build/reports/coverage/debug/report.xml'
Expand Down

0 comments on commit f680cdf

Please sign in to comment.