github.com/paultyng/terraform@v0.6.11-0.20180227224804-66ff8f8bed40/.travis.yml (about) 1 dist: trusty 2 sudo: false 3 language: go 4 go: 5 - "1.10" 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 - GOOS=windows go build 38 branches: 39 only: 40 - master 41 notifications: 42 irc: 43 channels: 44 - irc.freenode.org#terraform-tool 45 skip_join: true 46 use_notice: true 47 matrix: 48 fast_finish: true 49 allow_failures: 50 - go: tip