-
Notifications
You must be signed in to change notification settings - Fork 117
/
.travis.yml
36 lines (36 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
sudo: required
services:
- docker
language: go
go:
- 1.12.x
- 1.13.x
install:
- go get -u github.com/vbatts/git-validation
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
- chmod +x kubectl
- mv kubectl ${GOPATH}/bin
- curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-$(uname)-amd64
- chmod +x ./kind
- mv ./kind ${GOPATH}/bin
script:
- git-validation -run DCO,short-subject
- if [[ $(go version) == *"1.13"* ]]; then
go fmt $(go list ./... | grep -v vendor) | wc -l | grep "^0";
fi
- make docker-proto
- git diff $(find . -name "*.pb.*go" -o -name "api.swagger.json" | grep -v vendor) | wc -l | grep "^0"
- git grep -rw GPL vendor | grep LICENSE | egrep -v "yaml.v2" | wc -l | grep "^0"
- make install verify
- bash hack/docker-integration-test.sh
- if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
echo "${DOCKER_PASS}" | docker login -u "${DOCKER_USER}" --password-stdin;
make push-mock-sdk-server;
fi
notifications:
email:
recipients:
- aditya@portworx.com
- eng@portworx.com
on_success: change
on_failure: always