Skip to content

Commit cd6a9cf

Browse files
author
Vladimir Kotal
committed
do not run Jacoco/Coveralls for forks
fixes #2078
1 parent 5aba820 commit cd6a9cf

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ env:
3434
# via the "travis encrypt" command using the project repo's public key
3535
- secure: "O_cda5pWDBAP-O3_0nG5RQ"
3636

37-
#
38-
# If compilation fails, we do not want to run the tests. Travis runs everything
39-
# in 'script' no matter if an individual command fails or not. This kludgy
40-
# looking shell incantation takes care of that.
41-
#
42-
script:
43-
- mvn -B -V verify jacoco:report org.eluder.coveralls:coveralls-maven-plugin:report
37+
script: scripts/main
4438

4539
addons:
4640
coverity_scan:

scripts/main

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
#
4+
# Do not run coverage for forks as most people do not have Coveralls enabled
5+
# for their fork.
6+
#
7+
extra_args=""
8+
if [ "x$TRAVIS_REPO_SLUG" == "xoracle/opengrok" ]; then
9+
extra_args="jacoco:report org.eluder.coveralls:coveralls-maven-plugin:report"
10+
fi
11+
12+
mvn -B -V verify $extra_args

0 commit comments

Comments
 (0)