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