mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
ddefee52dc
Note that by just running `make update-go-deps`, the K8s Go client was set to `k8s.io/client-go v11.0.0+incompatible`. However, that doesn't play well with `k8s.io/apimachinery v0.18.5`. I the manually changed the Go client line to `k8s.io/client-go v0.18.5`, which made everything work. I guess Go Modules got confused by the ginormous v11.0.0 version tag. Or it is a problem that pulling k8s.io/client-go with git results in a rather old repo without the v0.18.5 tag. github.com/kubernetes/client-go has all the right tags. I actually don't understand how Go Modules still correctly figures out the source from the `k8s.io/client-go v0.18.5` line. If one of the reviewers could enlighten me, I'd much appreciate it. Signed-off-by: beorn7 <beorn@grafana.com>
21 lines
530 B
YAML
21 lines
530 B
YAML
language: go
|
|
|
|
matrix:
|
|
include:
|
|
- go: "1.13.x"
|
|
- go: "1.14.x"
|
|
- go: "tip"
|
|
env:
|
|
- LINT=true
|
|
- COVERAGE=true
|
|
|
|
install:
|
|
- if [ "$LINT" == true ]; then go get -u golang.org/x/lint/golint/... ; else echo 'skipping lint'; fi
|
|
- go get -u github.com/stretchr/testify/...
|
|
|
|
script:
|
|
- make test
|
|
- go build ./...
|
|
- if [ "$LINT" == true ]; then make lint ; else echo 'skipping lint'; fi
|
|
- if [ "$COVERAGE" == true ]; then make cover && bash <(curl -s https://codecov.io/bash) ; else echo 'skipping coverage'; fi
|