2019-06-04 14:28:18 -07:00
|
|
|
language: go
|
|
|
|
go:
|
|
|
|
- "1.12"
|
|
|
|
|
2019-06-04 14:50:46 -07:00
|
|
|
# safelist
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2019-06-04 14:28:18 -07:00
|
|
|
# Skip the install step. Don't `go get` dependencies. Only build with the code
|
|
|
|
# in vendor/
|
|
|
|
install: true
|
|
|
|
|
|
|
|
script:
|
2019-06-07 13:13:11 -07:00
|
|
|
- make build || travis_terminate 1;
|
|
|
|
- make test-all || travis_terminate 1;
|
2019-06-04 18:05:10 -07:00
|
|
|
|
2019-06-05 17:54:07 -07:00
|
|
|
after_script:
|
|
|
|
- curl -d "repo=https://github.com/nirmata/kyverno" https://goreportcard.com/checks
|
|
|
|
|
2019-06-04 18:05:10 -07:00
|
|
|
after_success:
|
|
|
|
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
|
|
|
- make docker-publish
|