github.com/openshift/terraform@v0.11.12-beta1/.travis.yml (about)

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