github.com/paybyphone/terraform@v0.9.5-0.20170613192930-9706042ddd51/.travis.yml (about)

     1  dist: trusty
     2  sudo: false
     3  language: go
     4  go:
     5  - 1.8.1
     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
    29  - make test
    30  - make vet
    31  - GOOS=windows go build
    32  branches:
    33    only:
    34    - master
    35  notifications:
    36    irc:
    37      channels:
    38      - irc.freenode.org#terraform-tool
    39      skip_join: true
    40      use_notice: true
    41  matrix:
    42    fast_finish: true
    43    allow_failures:
    44    - go: tip
    45