diff options
Diffstat (limited to 'vendor/google.golang.org/grpc/.travis.yml')
-rw-r--r-- | vendor/google.golang.org/grpc/.travis.yml | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/vendor/google.golang.org/grpc/.travis.yml b/vendor/google.golang.org/grpc/.travis.yml index 88a785d..f443eec 100644 --- a/vendor/google.golang.org/grpc/.travis.yml +++ b/vendor/google.golang.org/grpc/.travis.yml | |||
@@ -1,21 +1,37 @@ | |||
1 | language: go | 1 | language: go |
2 | 2 | ||
3 | go: | 3 | matrix: |
4 | - 1.6.x | 4 | include: |
5 | - 1.7.x | 5 | - go: 1.11.x |
6 | - 1.8.x | 6 | env: VET=1 GO111MODULE=on |
7 | - go: 1.11.x | ||
8 | env: RACE=1 GO111MODULE=on | ||
9 | - go: 1.11.x | ||
10 | env: RUN386=1 | ||
11 | - go: 1.11.x | ||
12 | env: GRPC_GO_RETRY=on | ||
13 | - go: 1.10.x | ||
14 | - go: 1.9.x | ||
15 | - go: 1.9.x | ||
16 | env: GAE=1 | ||
7 | 17 | ||
8 | go_import_path: google.golang.org/grpc | 18 | go_import_path: google.golang.org/grpc |
9 | 19 | ||
10 | before_install: | 20 | before_install: |
11 | - if [[ $TRAVIS_GO_VERSION = 1.8* ]]; then go get -u github.com/golang/lint/golint honnef.co/go/tools/cmd/staticcheck; fi | 21 | - if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi |
12 | - go get -u golang.org/x/tools/cmd/goimports github.com/axw/gocov/gocov github.com/mattn/goveralls golang.org/x/tools/cmd/cover | 22 | - if [[ -n "${RUN386}" ]]; then export GOARCH=386; fi |
23 | - if [[ "${TRAVIS_EVENT_TYPE}" = "cron" && -z "${RUN386}" ]]; then RACE=1; fi | ||
24 | - if [[ "${TRAVIS_EVENT_TYPE}" != "cron" ]]; then VET_SKIP_PROTO=1; fi | ||
25 | |||
26 | install: | ||
27 | - try3() { eval "$*" || eval "$*" || eval "$*"; } | ||
28 | - try3 'if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make testdeps; fi' | ||
29 | - if [[ "${GAE}" = 1 ]]; then source ./install_gae.sh; make testappenginedeps; fi | ||
30 | - if [[ "${VET}" = 1 ]]; then ./vet.sh -install; fi | ||
13 | 31 | ||
14 | script: | 32 | script: |
15 | - 'set -o pipefail && git ls-files "*.go" | xargs grep -L "\(Copyright [0-9]\{4,\} gRPC authors\)\|DO NOT EDIT" 2>&1 | tee /dev/stderr | (! read)' | 33 | - set -e |
16 | - 'set -o pipefail && gofmt -s -d -l . 2>&1 | tee /dev/stderr | (! read)' | 34 | - if [[ "${VET}" = 1 ]]; then ./vet.sh; fi |
17 | - 'set -o pipefail && goimports -l . 2>&1 | tee /dev/stderr | (! read)' | 35 | - if [[ "${GAE}" = 1 ]]; then make testappengine; exit 0; fi |
18 | - 'if [[ $TRAVIS_GO_VERSION = 1.8* ]]; then ! golint ./... | grep -vE "(_mock|_string|\.pb)\.go:"; fi' | 36 | - if [[ "${RACE}" = 1 ]]; then make testrace; exit 0; fi |
19 | - 'if [[ $TRAVIS_GO_VERSION = 1.8* ]]; then ! go tool vet -all . 2>&1 | grep -vF .pb.go:; fi' # https://github.com/golang/protobuf/issues/214 | 37 | - make test |
20 | - make test testrace | ||
21 | - 'if [[ $TRAVIS_GO_VERSION = 1.8* ]]; then staticcheck -ignore google.golang.org/grpc/transport/transport_test.go:SA2002 ./...; fi' # TODO(menghanl): fix these | ||