2017-05-02 14:33:52 -05:00
|
|
|
dist: trusty
|
2018-05-02 06:43:14 -05:00
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
2017-05-02 14:33:52 -05:00
|
|
|
language: go
|
|
|
|
go:
|
2018-09-09 12:39:36 -05:00
|
|
|
- "1.11"
|
2017-04-27 11:40:53 -05:00
|
|
|
|
2017-05-02 14:33:52 -05:00
|
|
|
# add TF_CONSUL_TEST=1 to run consul tests
|
|
|
|
# they were causing timouts in travis
|
2017-09-09 02:17:56 -05:00
|
|
|
# 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 17:07:10 -05:00
|
|
|
env:
|
2018-11-16 20:54:33 -06:00
|
|
|
- CONSUL_VERSION=0.7.5 GOMAXPROCS=4 GO111MODULE=on
|
2017-03-13 17:07:10 -05:00
|
|
|
|
2017-05-02 14:33:52 -05: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 12:19:24 -05:00
|
|
|
- mkdir -p ~/bin
|
2017-05-02 14:33:52 -05:00
|
|
|
- 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
|
2018-10-18 11:27:48 -05:00
|
|
|
- make tools
|
2017-10-30 13:04:25 -05:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- git config --global url.https://github.com/.insteadOf ssh://git@github.com/
|
|
|
|
|
2017-05-02 14:33:52 -05:00
|
|
|
script:
|
2017-05-19 08:12:56 -05:00
|
|
|
- make vendor-status
|
|
|
|
- make test
|
2017-09-19 14:00:26 -05:00
|
|
|
- make e2etest
|
2018-11-20 13:59:48 -06:00
|
|
|
- GOOS=windows go build -mod=vendor
|
2018-11-16 20:58:50 -06:00
|
|
|
# website-test is temporarily disabled while we get the website build back in shape after the v0.12 reorganization
|
|
|
|
#- make website-test
|
2018-05-02 06:43:14 -05:00
|
|
|
|
2015-01-22 14:57:01 -06:00
|
|
|
branches:
|
|
|
|
only:
|
2017-04-18 19:10:41 -05:00
|
|
|
- master
|
2017-05-02 14:33:52 -05:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- irc.freenode.org#terraform-tool
|
|
|
|
skip_join: true
|
|
|
|
use_notice: true
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
2017-05-19 08:12:56 -05:00
|
|
|
- go: tip
|