2018-09-21 08:08:38 +00:00
|
|
|
# sudo is enabled because it provides more memory which was needed to run go test -race
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2017-04-09 08:18:19 +00:00
|
|
|
language: go
|
2018-12-13 13:29:29 +00:00
|
|
|
os:
|
|
|
|
- windows
|
|
|
|
- linux
|
|
|
|
- osx
|
2017-04-09 08:18:19 +00:00
|
|
|
|
|
|
|
go:
|
2018-09-21 08:08:38 +00:00
|
|
|
- 1.10.x
|
2018-11-28 10:39:56 +00:00
|
|
|
- 1.11.x
|
2017-04-09 08:18:19 +00:00
|
|
|
|
|
|
|
go_import_path: github.com/prometheus/tsdb
|
|
|
|
|
2018-12-13 13:29:29 +00:00
|
|
|
before_install:
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install make; fi
|
2019-01-02 16:48:42 +00:00
|
|
|
|
2018-09-21 08:08:38 +00:00
|
|
|
install:
|
2019-01-02 16:48:42 +00:00
|
|
|
- make deps
|
2018-09-21 08:08:38 +00:00
|
|
|
|
2017-04-09 08:18:19 +00:00
|
|
|
script:
|
2018-09-21 08:08:38 +00:00
|
|
|
# `staticcheck` target is omitted due to linting errors
|
2019-01-02 16:48:42 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then make test; else make; fi
|