1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/.travis.yml

36 lines
802 B
YAML
Raw Normal View History

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-10-02 15:27:40 -07:00
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|^(LICENSE)'
then
echo "Not running CI since only docs were changed."
exit
fi
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:
- make build || travis_terminate 1;
- make test-all || travis_terminate 1;
after_script:
- curl -d "repo=https://github.com/nirmata/kyverno" https://goreportcard.com/checks
2019-10-17 10:33:50 -07:00
# only push images if the branch is master
after_success:
2019-10-17 13:50:42 -07:00
- |
2019-10-17 14:35:13 -07:00
if [ $TRAVIS_PULL_REQUEST == 'false' ]
2019-10-17 13:50:42 -07:00
then
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
# make docker-publish-initContainer
# make docker-publish-kyverno
2019-10-17 13:50:42 -07:00
fi