File: .travis.yml

package info (click to toggle)
golang-github-mesos-mesos-go 0.0.6+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 11,724 kB
  • sloc: makefile: 163
file content (26 lines) | stat: -rw-r--r-- 1,145 bytes parent folder | download
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
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.8.x is no longer tested here
  - 1.7.x
  - 1.8.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.8.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