forked from Stackdriver/stackdriver-prometheus-sidecar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
17 lines (13 loc) · 796 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
language: go
go:
- 1.12.x
go_import_path: github.com/Stackdriver/stackdriver-prometheus-sidecar
# Skip dependency fetch. We store all dependencies under vendor/.
install: true
script:
# 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