terraform/.travis.yml

62 lines
1.6 KiB
YAML
Raw Normal View History

dist: trusty
sudo: required
services:
- docker
language: go
go:
- "1.12.13"
# add TF_CONSUL_TEST=1 to run consul tests
# they were causing timouts in travis
# add TF_ETCDV3_TEST=1 to run etcdv3 tests
# if added, TF_ETCDV3_ENDPOINTS must be set to a comma-separated list of (insecure) etcd endpoints against which to test
2017-03-13 23:07:10 +01:00
env:
- CONSUL_VERSION=0.7.5 GOMAXPROCS=4 GO111MODULE=on GOPROXY=https://proxy.golang.org/
2017-03-13 23:07:10 +01:00
# Fetch consul for the backend and provider tests
before_install:
- curl -sLo consul.zip https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip
- unzip consul.zip
2017-07-13 19:19:24 +02:00
- mkdir -p ~/bin
- mv consul ~/bin
- export PATH="~/bin:$PATH"
install:
# This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
- make tools
2017-10-30 19:04:25 +01:00
before_script:
- git config --global url.https://github.com/.insteadOf ssh://git@github.com/
script:
- make fmtcheck generate
- bash scripts/travis.sh
2019-01-29 15:44:30 +01:00
- go mod verify
- make e2etest
- GOOS=windows go build -mod=vendor
# website-test is temporarily disabled while we get the website build back in shape after the v0.12 reorganization
#- make website-test
2020-03-03 18:19:07 +01:00
after_success:
- bash <(curl -s https://codecov.io/bash)
2015-01-22 21:57:01 +01:00
branches:
only:
- master
- v0.11
2020-03-03 18:15:12 +01:00
- v0.12
notifications:
irc:
channels:
- irc.freenode.org#terraform-tool
skip_join: true
use_notice: true
matrix:
fast_finish: true
allow_failures:
2017-05-19 15:12:56 +02:00
- go: tip