github.com/richardmarshall/terraform@v0.9.5-0.20170429023105-15704cc6ee35/.travis.yml (about)

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