You are viewing a plain text version of this content. The canonical link for it is here.
Posted to distributedlog-dev@bookkeeper.apache.org by fc...@apache.org on 2016/12/01 00:13:22 UTC
incubator-distributedlog git commit: Build cobertura report only on
master for successful builds
Repository: incubator-distributedlog
Updated Branches:
refs/heads/master ebaf14580 -> e611ef9e8
Build cobertura report only on master for successful builds
Building the report takes time, and when someone submits a pull request,
we should not show it as failure if the build timeouts for the report.
We only need the report when we build master, and only if the build is
successful.
Author: Franck Cuny <fc...@apache.org>
Reviewers: Sijie Guo <si...@apache.org>
Closes #45 from franckcuny/fcuny/fix-travis
Project: http://git-wip-us.apache.org/repos/asf/incubator-distributedlog/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-distributedlog/commit/e611ef9e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-distributedlog/tree/e611ef9e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-distributedlog/diff/e611ef9e
Branch: refs/heads/master
Commit: e611ef9e86d31f19e40914693278c570c6f6c253
Parents: ebaf145
Author: Franck Cuny <fc...@apache.org>
Authored: Wed Nov 30 16:13:03 2016 -0800
Committer: Franck Cuny <fc...@apache.org>
Committed: Wed Nov 30 16:13:03 2016 -0800
----------------------------------------------------------------------
.travis.yml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-distributedlog/blob/e611ef9e/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 0a45d4b..7c177fc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,9 +24,12 @@ before_install:
- echo "MAVEN_OPTS='-Xmx3072m -XX:MaxPermSize=512m'" > ~/.mavenrc
script:
- - travis_retry mvn clean apache-rat:check
- - travis_retry mvn clean install findbugs:check -DskipTests=true
- - travis_wait 60 mvn package cobertura:cobertura coveralls:report
+ - travis_retry mvn --batch-mode clean apache-rat:check
+ - travis_retry mvn --batch-mode clean install findbugs:check -DskipTests=true
+
+# we build the report only after a successful build on master
+after_success:
+ - $TRAVIS_BRANCH == 'master' && travis_wait 60 mvn --batch-mode clean cobertura:cobertura coveralls:report
cache:
directories: