mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-01 11:47:07 -06:00
f45aae9b70
We don't usually run "acceptance tests" during a Travis run, but this particular suite doesn't require any special credentials since it just accesses releases.hashicorp.com to download plugins, so therefore it's safe to run in Travis at the expense of adding a few more seconds to the runtime. Running it in Travis can therefore give us some extra confidence for pull requests that may inadvertently break certain details of the workflow, as well as ensuring that these tests are kept up-to-date as the system changes.
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
dist: trusty
|
|
sudo: false
|
|
language: go
|
|
go:
|
|
- 1.9
|
|
|
|
# add TF_CONSUL_TEST=1 to run consul tests
|
|
# they were causing timouts in travis
|
|
env:
|
|
- CONSUL_VERSION=0.7.5 GOMAXPROCS=4
|
|
|
|
# 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 -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:
|
|
- make vendor-status
|
|
- make test
|
|
- make e2etest
|
|
- make vet
|
|
- GOOS=windows go build
|
|
branches:
|
|
only:
|
|
- master
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- irc.freenode.org#terraform-tool
|
|
skip_join: true
|
|
use_notice: true
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
- go: tip
|