2017-03-14 18:12:07 +01:00
|
|
|
dist: trusty
|
2015-01-22 21:56:32 +01:00
|
|
|
sudo: false
|
2014-08-05 19:16:53 +02:00
|
|
|
language: go
|
|
|
|
go:
|
2017-02-16 22:13:42 +01:00
|
|
|
- 1.8
|
2017-03-13 23:07:10 +01:00
|
|
|
|
|
|
|
env:
|
2017-03-14 19:41:16 +01:00
|
|
|
- CONSUL_VERSION=0.7.5 TF_CONSUL_TEST=1
|
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
|
|
|
|
- mkdir ~/bin
|
|
|
|
- mv consul ~/bin
|
|
|
|
- export PATH="~/bin:$PATH"
|
|
|
|
|
2016-01-29 20:53:56 +01:00
|
|
|
install:
|
2016-03-21 13:56:18 +01:00
|
|
|
# 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
|
2017-01-20 18:01:40 +01:00
|
|
|
- go get github.com/kardianos/govendor
|
2014-08-05 19:16:53 +02:00
|
|
|
script:
|
2017-02-24 19:45:26 +01:00
|
|
|
- make vet vendor-status test
|
2017-01-11 15:53:28 +01:00
|
|
|
- GOOS=windows go build
|
2015-01-22 21:57:01 +01:00
|
|
|
branches:
|
|
|
|
only:
|
2016-03-21 13:56:18 +01:00
|
|
|
- master
|
2015-01-22 22:02:03 +01:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
2016-03-21 13:56:18 +01:00
|
|
|
- irc.freenode.org#terraform-tool
|
2015-01-22 22:02:03 +01:00
|
|
|
skip_join: true
|
|
|
|
use_notice: true
|
2014-08-05 19:16:53 +02:00
|
|
|
matrix:
|
2015-01-22 21:56:32 +01:00
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
2016-03-21 13:56:18 +01:00
|
|
|
- go: tip
|