summaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
blob: 1667ab8a7289741d2f74e76234a17d3ac4988aa2 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: go

sudo: required
dist: trusty
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 sh -c 'echo "deb http://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list'; fi
 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D; fi
 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi
 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get remove --purge -y --force-yes docker-engine; fi
 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -y --force-yes install docker-engine=1.8.3-0~trusty; fi
 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo docker -v; fi

matrix:
  allow_failures:
    - go: tip
  exclude:
    - go: 1.5
      env: SCENARIO=true
    - go: tip
      env: SCENARIO=true
    - 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

go_import_path: github.com/osrg/gobgp

script:
 - if [[ "$TRAVIS_GO_VERSION" == "1.5" ]]; then test -z "$(go fmt ./...)"; fi && bash test/scenario_test/ci-scripts/travis-build-script.sh $SCENARIO

notifications:
 slack:
  secure: KzuC9kytzS7wTlfj4MqSg8EpqXfJRMbo59dAVTA3w587achnVCS3vhUenWuhMCiWk7+6DVWwNpwzn2+A0S6RwMFMpKAU6Ij6K9sxEOgqBGuMN8w1//w+uJTryzsnebEIhInGt2kKfqz4Wx3QQqW5gVhI+8s+c5M0iXxFtN4soVk=