Skip to content

Commit 9ed2c4c

Browse files
Only run goveralls on internal pull requests. (#274)
1 parent 9b4855b commit 9ed2c4c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ go_import_path: github.com/Stackdriver/stackdriver-prometheus-sidecar
88
# Skip dependency fetch. We store all dependencies under vendor/.
99
install: true
1010

11-
# make goveralls runs all tests as well.
1211
script:
13-
- make goveralls
12+
# Can't run goveralls for external pull requests, so only run the tests.
13+
- 'if [[ "${TRAVIS_PULL_REQUEST_SLUG:-Stackdriver/stackdriver-prometheus-sidecar}" != "Stackdriver/stackdriver-prometheus-sidecar" ]]; then make test; fi'
14+
# For internal pull requests and push builds, make goveralls will run all tests as well.
15+
- 'if [[ "${TRAVIS_PULL_REQUEST_SLUG:-Stackdriver/stackdriver-prometheus-sidecar}" == "Stackdriver/stackdriver-prometheus-sidecar" ]]; then make goveralls; fi'
1416
# TODO(jkohen): `make goveralls` is causing a diff in go.mod. Prevent that and uncomment the line below.
1517
#- git diff --exit-code
1618

0 commit comments

Comments
 (0)