mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-23 06:40:23 +00:00
23 lines
684 B
YAML
23 lines
684 B
YAML
language: go
|
|
services:
|
|
- docker
|
|
# Needed for e2e tests
|
|
sudo: true
|
|
go: 1.10.3
|
|
go_import_path: github.com/kubernetes-csi/drivers
|
|
install:
|
|
- go get -u github.com/golang/dep/cmd/dep
|
|
- dep ensure -vendor-only
|
|
- make hostpath
|
|
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)
|
|
- ./hack/e2e-hostpath.sh
|
|
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
|