1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00
kyverno/.travis.yml
Shivkumar Dudhani 61b202c64a
420 init container (#501)
* init container to cleanup stale webhook configurations if any.

* remove test code

* use internal pkg for os signals

* move webhook cleanup before http.server shutown.

* update make file and remove init

* update CI script
2019-11-18 11:41:37 -08:00

36 lines
No EOL
802 B
YAML

language: go
go:
- "1.12"
# safelist
branches:
only:
- master
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
# 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
# only push images if the branch is master
after_success:
- |
if [ $TRAVIS_PULL_REQUEST == 'false' ]
then
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
# make docker-publish-initContainer
# make docker-publish-kyverno
fi