github.com/pgray/terraform@v0.5.4-0.20170822184730-b6a464c5214d/.travis.yml (about)

     1  dist: trusty
     2  sudo: false
     3  language: go
     4  go:
     5  - 1.8.3
     6  - 1.9rc1
     7  
     8  # add TF_CONSUL_TEST=1 to run consul tests
     9  # they were causing timouts in travis
    10  env:
    11    - CONSUL_VERSION=0.7.5 GOMAXPROCS=4
    12  
    13  # Fetch consul for the backend and provider tests
    14  before_install:
    15    - curl -sLo consul.zip https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip
    16    - unzip consul.zip
    17    - mkdir -p ~/bin
    18    - mv consul ~/bin
    19    - export PATH="~/bin:$PATH"
    20  
    21  install:
    22  # This script is used by the Travis build to install a cookie for
    23  # go.googlesource.com so rate limits are higher when using `go get` to fetch
    24  # packages that live there.
    25  # See: https://github.com/golang/go/issues/12933
    26  - bash scripts/gogetcookie.sh
    27  - go get github.com/kardianos/govendor
    28  script:
    29  - make vendor-status
    30  - make test
    31  - make vet
    32  - GOOS=windows go build
    33  branches:
    34    only:
    35    - master
    36  notifications:
    37    irc:
    38      channels:
    39      - irc.freenode.org#terraform-tool
    40      skip_join: true
    41      use_notice: true
    42  matrix:
    43    fast_finish: true
    44    allow_failures:
    45    - go: tip