2017-08-03 14:53:49 +00:00
|
|
|
sudo: true
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2017-06-19 21:17:52 +00:00
|
|
|
language: go
|
2017-08-03 14:53:49 +00:00
|
|
|
|
2017-06-19 21:14:29 +00:00
|
|
|
install:
|
2017-06-20 10:23:01 +00:00
|
|
|
- go get github.com/aquasecurity/kube-bench
|
2017-06-19 21:14:29 +00:00
|
|
|
script:
|
2017-06-23 09:52:08 +00:00
|
|
|
- go test ./...
|
2017-06-20 08:52:53 +00:00
|
|
|
- go build -o kube-bench .
|
2017-08-03 14:53:49 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- if [ "$TRAVIS_BRANCH" == "master" ]; then
|
|
|
|
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
|
|
|
|
docker build -t aquasec/kube-bench .;
|
|
|
|
docker push aquasec/kube-bench;
|
|
|
|
fi
|