2018-01-09 18:57:14 +00:00
|
|
|
language: go
|
2018-07-18 14:47:22 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2018-02-15 13:50:31 +00:00
|
|
|
# Needed for e2e tests
|
|
|
|
sudo: true
|
2018-07-18 14:47:22 +00:00
|
|
|
go: 1.10.3
|
2018-01-09 18:57:14 +00:00
|
|
|
go_import_path: github.com/kubernetes-csi/drivers
|
|
|
|
install:
|
2018-02-15 13:50:31 +00:00
|
|
|
- go get -u github.com/golang/dep/cmd/dep
|
|
|
|
- dep ensure -vendor-only
|
2018-03-06 22:33:18 +00:00
|
|
|
- make hostpath
|
2018-01-09 18:57:14 +00:00
|
|
|
script:
|
2018-02-15 13:50:31 +00:00
|
|
|
- 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)
|
|
|
|
- ./hack/e2e-hostpath.sh
|
2018-07-18 14:47:22 +00:00
|
|
|
after_success:
|
|
|
|
- if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
|
|
|
|
docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" quay.io;
|
|
|
|
make hostpath-container;
|
|
|
|
docker push quay.io/k8scsi/hostpathplugin:canary;
|
|
|
|
fi
|