File: .travis.yml

package info (click to toggle)
golang-github-cockroachdb-cmux 0.0~git20170110.0.30d10be-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 140 kB
  • sloc: makefile: 2
file content (29 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (2)
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
language: go

go:
  - 1.5
  - 1.6
  - 1.7
  - tip

matrix:
  allow_failures:
    - go: tip

gobuild_args: -race

before_install:
  - if [[ $TRAVIS_GO_VERSION == 1.7* ]]; then go get -u github.com/kisielk/errcheck; fi
  - if [[ $TRAVIS_GO_VERSION == 1.7* ]]; then go get -u github.com/golang/lint/golint; fi

before_script:
  - '! gofmt -s -l . | read'
  - echo $TRAVIS_GO_VERSION
  - if [[ $TRAVIS_GO_VERSION == 1.7* ]]; then golint ./...; fi
  - if [[ $TRAVIS_GO_VERSION == 1.7* ]]; then errcheck ./...; fi
  - if [[ $TRAVIS_GO_VERSION == 1.7* ]]; then go tool vet .; fi
  - if [[ $TRAVIS_GO_VERSION == 1.7* ]]; then go tool vet --shadow .; fi

script:
  - go test -bench . -v ./...
  - go test -race -bench . -v ./...