diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-09-13 01:45:53 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-09-14 11:32:45 +0900 |
commit | 22f888766aba3eb39fc50f0161537221ed0c5f6a (patch) | |
tree | 85eddf6475c1bc1eb05e5d8868c1b65220e6618c /.travis.yml | |
parent | 10142c11f9c93e6699d8e65af002cf2eef3a3e5e (diff) |
travis: divide scenario tests to multiple travis jobs
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 155 |
1 files changed, 119 insertions, 36 deletions
diff --git a/.travis.yml b/.travis.yml index 9ce91ab5..977d2158 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,51 +1,134 @@ language: go -sudo: required -services: - - docker - -go: - - 1.5 - - 1.6 - - 1.7 - - tip - -os: - - linux - - osx - -env: - - SCENARIO=false - - SCENARIO=true - before_install: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0; fi +install: test/scenario_test/ci-scripts/travis-install-script.sh +script: test/scenario_test/ci-scripts/travis-build-script.sh matrix: allow_failures: - go: tip - exclude: + include: - go: 1.5 - env: SCENARIO=true + before_install: true + install: go get -t ./... + script: go test ./... + - go: 1.6 + before_install: true + install: go get -t ./... + script: go test ./... + - go: 1.7 + before_install: true + install: go get -t ./... + script: go test ./... - go: tip - env: SCENARIO=true + before_install: true + install: go get -t ./... + script: go test ./... - go: 1.7 - env: SCENARIO=true - - os: osx - go: 1.5 - - os: osx - go: 1.6 - env: SCENARIO=true - - os: osx - go: 1.7 - - os: osx - go: tip + os: osx + before_install: true + install: go get -t ./... + script: go test ./... + - go: 1.7 + before_install: true + install: true + script: test -z "$(go fmt ./...)" + - go: 1.7 + before_install: true + install: go get ./... + script: python test/scenario_test/ci-scripts/build_embeded_go.py docs/sources/lib.md + - env: + - TEST=bgp_router_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=bgp_zebra_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=evpn_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=flow_spec_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=flow_spec_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=global_policy_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=graceful_restart_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=ibgp_router_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=route_reflector_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=route_server_as2_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=route_server_ipv4_v6_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=route_server_malformed_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=route_server_policy_grpc_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=route_server_policy_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=route_server_softreset_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=route_server_test.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker + - env: + - TEST=route_server_test2.py DOCKER_IMAGE=gobgp + sudo: required + services: + - docker -go_import_path: github.com/osrg/gobgp +cache: + pip: true -script: - - if [[ "$TRAVIS_GO_VERSION" == "1.5" ]]; then test -z "$(go fmt ./...)"; fi && bash test/scenario_test/ci-scripts/travis-build-script.sh $SCENARIO +go_import_path: github.com/osrg/gobgp notifications: slack: |