forked from libopenstorage/openstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.01 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
37
sudo: required
dist: trusty
services:
- docker
language: go
go:
- 1.8.5
- 1.9.2
before_install:
- sudo apt-get update -yq
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -yq docker-ce
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 install
- make vet
- make lint
- make docker-test
- make docs
- make docker-coverage
- goveralls -coverprofile=/mnt/coverage.out -service=travis-ci -repotoken "${COVERALLS_TOKEN}"
- if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
make docker-build-osd;
docker login -u "${DOCKER_USER}" -p "${DOCKER_PASS}";
docker push openstorage/osd;
fi
notifications:
email:
recipients:
- aditya@portworx.com
- eng@portworx.com
on_success: always
on_failure: always