2014-09-10 02:44:41 +04:00
|
|
|
language: go
|
2016-04-30 00:54:40 +03:00
|
|
|
go_import_path: github.com/coreos/etcd
|
2017-10-24 05:40:27 +03:00
|
|
|
|
|
|
|
sudo: required
|
|
|
|
|
|
|
|
services: docker
|
2015-12-04 22:08:37 +03:00
|
|
|
|
2014-09-10 02:44:41 +04:00
|
|
|
go:
|
2018-06-08 20:50:12 +03:00
|
|
|
- 1.10.3
|
2017-10-24 05:40:27 +03:00
|
|
|
- tip
|
2014-09-10 02:44:41 +04:00
|
|
|
|
2017-02-14 23:08:49 +03:00
|
|
|
notifications:
|
|
|
|
on_success: never
|
|
|
|
on_failure: never
|
|
|
|
|
2016-04-30 00:54:40 +03:00
|
|
|
env:
|
|
|
|
matrix:
|
2018-04-11 02:44:09 +03:00
|
|
|
- TARGET=linux-amd64-fmt
|
2018-04-20 23:20:42 +03:00
|
|
|
- TARGET=linux-amd64-integration-1-cpu
|
|
|
|
- TARGET=linux-amd64-integration-2-cpu
|
|
|
|
- TARGET=linux-amd64-integration-4-cpu
|
2018-04-11 02:44:09 +03:00
|
|
|
- TARGET=linux-amd64-functional
|
2018-06-13 21:48:08 +03:00
|
|
|
- TARGET=linux-amd64-unit
|
|
|
|
- TARGET=all-build
|
2018-04-11 02:44:09 +03:00
|
|
|
- TARGET=linux-amd64-fmt-unit-go-tip
|
2018-06-13 21:48:08 +03:00
|
|
|
- TARGET=linux-386-unit
|
2016-04-30 00:54:40 +03:00
|
|
|
|
2015-12-04 22:08:37 +03:00
|
|
|
matrix:
|
2016-06-03 18:46:36 +03:00
|
|
|
fast_finish: true
|
2015-12-04 22:08:37 +03:00
|
|
|
allow_failures:
|
2017-10-24 05:40:27 +03:00
|
|
|
- go: tip
|
2018-04-11 02:44:09 +03:00
|
|
|
env: TARGET=linux-amd64-fmt-unit-go-tip
|
2018-06-13 21:48:08 +03:00
|
|
|
- go: 1.10.3
|
|
|
|
env: TARGET=linux-386-unit
|
2016-06-03 18:46:36 +03:00
|
|
|
exclude:
|
2018-04-11 02:44:09 +03:00
|
|
|
- go: tip
|
|
|
|
env: TARGET=linux-amd64-fmt
|
|
|
|
- go: tip
|
2018-04-20 23:20:42 +03:00
|
|
|
env: TARGET=linux-amd64-integration-1-cpu
|
|
|
|
- go: tip
|
|
|
|
env: TARGET=linux-amd64-integration-2-cpu
|
|
|
|
- go: tip
|
|
|
|
env: TARGET=linux-amd64-integration-4-cpu
|
2017-05-16 01:19:15 +03:00
|
|
|
- go: tip
|
2018-04-11 02:44:09 +03:00
|
|
|
env: TARGET=linux-amd64-functional
|
2017-05-16 01:19:15 +03:00
|
|
|
- go: tip
|
2018-06-13 21:48:08 +03:00
|
|
|
env: TARGET=linux-amd64-unit
|
2018-04-11 02:44:09 +03:00
|
|
|
- go: tip
|
2018-06-13 21:48:08 +03:00
|
|
|
env: TARGET=all-build
|
2018-06-08 20:50:12 +03:00
|
|
|
- go: 1.10.3
|
2018-04-11 02:44:09 +03:00
|
|
|
env: TARGET=linux-amd64-fmt-unit-go-tip
|
2018-06-13 21:48:08 +03:00
|
|
|
- go: tip
|
|
|
|
env: TARGET=linux-386-unit
|
2015-12-04 22:08:37 +03:00
|
|
|
|
2016-02-21 14:52:15 +03:00
|
|
|
before_install:
|
2018-02-08 20:48:21 +03:00
|
|
|
- if [[ $TRAVIS_GO_VERSION == 1.* ]]; then docker pull gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION}; fi
|
2015-11-02 05:06:49 +03:00
|
|
|
|
2016-03-23 03:31:25 +03:00
|
|
|
install:
|
2018-04-11 02:44:09 +03:00
|
|
|
- go get -t -d ./...
|
2016-03-23 03:31:25 +03:00
|
|
|
|
2014-09-10 02:44:41 +04:00
|
|
|
script:
|
2018-02-08 20:48:21 +03:00
|
|
|
- echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
|
2016-04-30 00:54:40 +03:00
|
|
|
- >
|
2016-07-14 06:11:29 +03:00
|
|
|
case "${TARGET}" in
|
2018-04-11 02:44:09 +03:00
|
|
|
linux-amd64-fmt)
|
|
|
|
docker run --rm \
|
|
|
|
--volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
|
|
|
|
/bin/bash -c "GOARCH=amd64 PASSES='fmt bom dep' ./test"
|
|
|
|
;;
|
2018-04-20 23:20:42 +03:00
|
|
|
linux-amd64-integration-1-cpu)
|
|
|
|
docker run --rm \
|
|
|
|
--volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
|
|
|
|
/bin/bash -c "GOARCH=amd64 CPU=1 PASSES='integration' ./test"
|
|
|
|
;;
|
|
|
|
linux-amd64-integration-2-cpu)
|
|
|
|
docker run --rm \
|
|
|
|
--volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
|
|
|
|
/bin/bash -c "GOARCH=amd64 CPU=2 PASSES='integration' ./test"
|
|
|
|
;;
|
|
|
|
linux-amd64-integration-4-cpu)
|
2018-04-11 02:44:09 +03:00
|
|
|
docker run --rm \
|
|
|
|
--volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
|
2018-04-20 23:20:42 +03:00
|
|
|
/bin/bash -c "GOARCH=amd64 CPU=4 PASSES='integration' ./test"
|
2018-04-11 02:44:09 +03:00
|
|
|
;;
|
|
|
|
linux-amd64-functional)
|
|
|
|
docker run --rm \
|
|
|
|
--volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
|
|
|
|
/bin/bash -c "./build && GOARCH=amd64 PASSES='functional' ./test"
|
|
|
|
;;
|
2018-06-13 21:48:08 +03:00
|
|
|
linux-amd64-unit)
|
2017-10-24 05:40:27 +03:00
|
|
|
docker run --rm \
|
2018-02-08 20:48:21 +03:00
|
|
|
--volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
|
2018-06-13 21:48:08 +03:00
|
|
|
/bin/bash -c "GOARCH=amd64 PASSES='unit' ./test"
|
2017-05-16 01:19:15 +03:00
|
|
|
;;
|
2018-06-13 21:48:08 +03:00
|
|
|
all-build)
|
2017-10-24 05:40:27 +03:00
|
|
|
docker run --rm \
|
2018-02-08 20:48:21 +03:00
|
|
|
--volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
|
2018-06-13 21:48:08 +03:00
|
|
|
/bin/bash -c "GOARCH=amd64 PASSES='build' ./test \
|
|
|
|
&& GOARCH=386 PASSES='build' ./test \
|
|
|
|
&& GO_BUILD_FLAGS='-v' GOOS=darwin GOARCH=amd64 ./build \
|
|
|
|
&& GO_BUILD_FLAGS='-v' GOOS=windows GOARCH=amd64 ./build \
|
|
|
|
&& GO_BUILD_FLAGS='-v' GOARCH=arm ./build \
|
|
|
|
&& GO_BUILD_FLAGS='-v' GOARCH=arm64 ./build \
|
|
|
|
&& GO_BUILD_FLAGS='-v' GOARCH=ppc64le ./build"
|
2016-07-14 06:11:29 +03:00
|
|
|
;;
|
2018-06-13 21:48:08 +03:00
|
|
|
linux-amd64-fmt-unit-go-tip)
|
|
|
|
GOARCH=amd64 PASSES='fmt unit' ./test
|
2018-04-11 02:44:09 +03:00
|
|
|
;;
|
2018-06-13 21:48:08 +03:00
|
|
|
linux-386-unit)
|
2018-04-11 02:44:09 +03:00
|
|
|
docker run --rm \
|
|
|
|
--volume=`pwd`:/go/src/github.com/coreos/etcd gcr.io/etcd-development/etcd-test:go${TRAVIS_GO_VERSION} \
|
2018-06-13 21:48:08 +03:00
|
|
|
/bin/bash -c "GOARCH=386 PASSES='unit' ./test"
|
2016-07-14 06:11:29 +03:00
|
|
|
;;
|
|
|
|
esac
|