Skip to content

Commit

Permalink
Only run goveralls on internal pull requests. (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpeshansky committed Feb 25, 2021
1 parent 9b4855b commit 9ed2c4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ go_import_path: github.com/Stackdriver/stackdriver-prometheus-sidecar
# Skip dependency fetch. We store all dependencies under vendor/.
install: true

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

Expand Down

0 comments on commit 9ed2c4c

Please sign in to comment.