2017-05-02 21:33:52 +02:00
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
|
|
|
language: go
|
|
|
|
go:
|
2017-08-26 01:18:46 +02:00
|
|
|
- 1.9
|
2017-04-27 18:40:53 +02:00
|
|
|
|
2017-05-02 21:33:52 +02:00
|
|
|
# add TF_CONSUL_TEST=1 to run consul tests
|
|
|
|
# they were causing timouts in travis
|
2017-03-13 23:07:10 +01:00
|
|
|
env:
|
2017-05-02 21:33:52 +02:00
|
|
|
- CONSUL_VERSION=0.7.5 GOMAXPROCS=4
|
2017-03-13 23:07:10 +01:00
|
|
|
|
2017-05-02 21:33:52 +02: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
|
2017-05-02 21:33:52 +02: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
|
|
|
|
- go get github.com/kardianos/govendor
|
|
|
|
script:
|
2017-05-19 15:12:56 +02:00
|
|
|
- make vendor-status
|
|
|
|
- make test
|
2017-09-19 21:00:26 +02:00
|
|
|
- make e2etest
|
2017-05-19 15:12:56 +02:00
|
|
|
- make vet
|
2017-05-02 21:33:52 +02:00
|
|
|
- GOOS=windows go build
|
2015-01-22 21:57:01 +01:00
|
|
|
branches:
|
|
|
|
only:
|
2017-04-19 02:10:41 +02:00
|
|
|
- master
|
2017-05-02 21:33:52 +02:00
|
|
|
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
|