2018-08-30 15:16:37 +00:00
|
|
|
language: go
|
|
|
|
sudo: false
|
|
|
|
go:
|
|
|
|
- 1.11.x
|
2018-09-07 13:13:23 +00:00
|
|
|
- 1.x
|
2018-08-30 15:16:37 +00:00
|
|
|
|
2018-11-09 15:19:55 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/go-build
|
|
|
|
- $HOME/gopath/pkg/mod
|
|
|
|
- $HOME/Library/Caches/go-build
|
|
|
|
|
2018-08-30 16:06:08 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2018-09-07 13:13:03 +00:00
|
|
|
install:
|
2018-09-10 12:47:22 +00:00
|
|
|
- go get -v -d -t ./...
|
2018-09-07 13:14:43 +00:00
|
|
|
- npm --prefix client install
|
2018-11-09 15:19:55 +00:00
|
|
|
- go env
|
2018-09-07 13:13:03 +00:00
|
|
|
|
2018-08-30 15:16:37 +00:00
|
|
|
script:
|
2018-09-10 12:47:22 +00:00
|
|
|
- (cd `go env GOPATH`/src/github.com/prometheus/client_golang && git checkout -q v0.8.0)
|
2018-09-07 13:13:03 +00:00
|
|
|
- go test ./...
|
|
|
|
- make
|
2018-08-30 15:16:37 +00:00
|
|
|
|