forked from libopenstorage/openstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 888 Bytes
/
.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
sudo: required
services:
- docker
language: go
go:
- 1.10.4
install:
- go get github.com/mattn/goveralls
- go get -u github.com/vbatts/git-validation
- go get -u github.com/go-swagger/go-swagger/cmd/swagger
script:
- git-validation -run DCO,short-subject
- go fmt $(go list ./... | grep -v vendor) | wc -l | grep 0
- make docker-proto
- git diff $(find . -name "*.pb.*go" -o -name "api.swagger.json" | grep -v vendor) | wc -l | grep "^0"
- make sdk-check-version
- make install
- make vet
- bash hack/docker-integration-test.sh
- make docker-test
- 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:
on_success: change
on_failure: always