github.com/hooklift/terraform@v0.11.0-beta1.0.20171117000744-6786c1361ffe/.travis.yml (about)

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