1language: go
2go_import_path: github.com/coreos/etcd
3
4sudo: required
5
6services: docker
7
8go:
9- 1.12.12
10
11env:
12- GO111MODULE=on
13
14notifications:
15  on_success: never
16  on_failure: never
17
18env:
19  matrix:
20  - TARGET=linux-amd64-integration-1-cpu
21  - TARGET=linux-amd64-integration-4-cpu
22  - TARGET=linux-amd64-functional
23  - TARGET=linux-amd64-unit
24  - TARGET=linux-amd64-e2e
25  - TARGET=all-build
26  - TARGET=linux-386-unit
27
28matrix:
29  fast_finish: true
30  allow_failures:
31  - go: 1.12.12
32    env: TARGET=linux-386-unit
33
34install:
35- go get -t -v -d ./...
36
37script:
38 - echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
39 - >
40    case "${TARGET}" in
41      linux-amd64-integration-1-cpu)
42        GOARCH=amd64 CPU=1 PASSES='integration' ./test
43        ;;
44      linux-amd64-integration-4-cpu)
45        GOARCH=amd64 CPU=4 PASSES='integration' ./test
46        ;;
47      linux-amd64-functional)
48        ./build && GOARCH=amd64 PASSES='functional' ./test
49        ;;
50      linux-amd64-unit)
51        ./build && GOARCH=amd64 PASSES='unit' ./test
52        ;;
53      linux-amd64-e2e)
54        GOARCH=amd64 PASSES='build release e2e' MANUAL_VER=v3.3.13 ./test
55        ;;
56      all-build)
57        GOARCH=386 PASSES='build' ./test \
58          && GO_BUILD_FLAGS='-v' GOOS=darwin GOARCH=amd64 ./build \
59          && GO_BUILD_FLAGS='-v' GOARCH=arm ./build \
60          && GO_BUILD_FLAGS='-v' GOARCH=arm64 ./build \
61          && GO_BUILD_FLAGS='-v' GOARCH=ppc64le ./build
62        ;;
63      linux-386-unit)
64        GOARCH=386 ./build && GOARCH=386 PASSES='unit' ./test
65        ;;
66    esac
67