work around the 10 minutes timeout from inside Gradle
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/3e589224 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/3e589224 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/3e589224 Branch: refs/heads/master Commit: 3e58922426ade58781dd831145d9dbe426f49a60 Parents: cd5b85f Author: Jochen Kemnade <[email protected]> Authored: Thu Sep 17 08:58:07 2015 +0200 Committer: Jochen Kemnade <[email protected]> Committed: Thu Sep 17 08:58:07 2015 +0200 ---------------------------------------------------------------------- build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/3e589224/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index 2cef999..edbc495 100755 --- a/build.gradle +++ b/build.gradle @@ -201,6 +201,19 @@ subprojects { jvmArgs("-XX:MaxPermSize=512m", "-Dfile.encoding=UTF-8") environment.LANG = 'en_US.UTF-8' + + if (continuousIntegrationBuild){ + // Travis runs our builds with TERM=dumb and kills it if we don't produce any + // output for 10 minutes, so we log some task execution progress + + def numberOfTestsExecuted = 0 + afterTest { descriptor, result-> + numberOfTestsExecuted++ + if (numberOfTestsExecuted % 100 == 0){ + logger.lifecycle "$numberOfTestsExecuted tests executed" + } + } + } } jar {
