-
Notifications
You must be signed in to change notification settings - Fork 146
/
.travis.yml
27 lines (27 loc) · 1.13 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
sudo: false
language: go
# handle submodules ourselves
git:
submodules: false
env:
- PROTOBUF_VERSION=3.3.0
go:
# update validate-protobufs Makefile target once golang 1.11.x is no longer tested here
- 1.9.x
- 1.10.x
- 1.11.x
before_install:
#these two lines help users who fork mesos-go. It's a noop when running from the mesos organization
- RepoName=`basename $PWD`; SrcDir=`dirname $PWD`; DestDir="`dirname $SrcDir`/mesos"
- if [[ "$SrcDir" != "$DestDir" ]]; then mv "$SrcDir" "$DestDir"; cd ../../mesos/$RepoName; export TRAVIS_BUILD_DIR=`dirname $TRAVIS_BUILD_DIR`/$RepoName; fi
- go get github.com/mattn/goveralls
- go get github.com/kardianos/govendor
- make sync
- api/v1/vendor/github.com/gogo/protobuf/install-protobuf.sh
# re-generate protobuf and json code, check that there are no differences w/ respect to what's been checked in
# ONLY for golang1.11.x; generated protobufs are not guaranteed to be consistent across golang versions
- make validate-protobufs
install:
- make test install
script:
- if [[ "$TRAVIS_EVENT_TYPE" = "pull_request" ]] || [[ "$TRAVIS_BRANCH" = "master" ]]; then make coveralls; fi