opentofu/.travis.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

dist: trusty
sudo: false
language: go
go:
- 1.9.1
# 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 17:07:10 -05:00
env:
- CONSUL_VERSION=0.7.5 GOMAXPROCS=4
2017-03-13 17:07:10 -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
- 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 08:12:56 -05:00
- make vendor-status
- make test
- make e2etest
2017-05-19 08:12:56 -05:00
- make vet
- GOOS=windows go build
2015-01-22 14:57:01 -06:00
branches:
only:
- master
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