ceph-csi/vendor/github.com/kubernetes-csi/drivers/.travis.yml
2018-11-26 13:23:56 -05:00

19 lines
493 B
YAML

language: go
services:
- docker
# Needed for e2e tests
sudo: true
go: 1.10.3
go_import_path: github.com/kubernetes-csi/drivers
script:
- go fmt $(go list ./... | grep -v vendor) | wc -l | grep 0
- go vet $(go list ./... | grep -v vendor)
- go test $(go list ./... | grep -v vendor)
- make hostpath
- ./hack/e2e-hostpath.sh
after_success:
- if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" quay.io;
make push;
fi