2017-05-02 21:33:52 +02:00
|
|
|
dist: trusty
|
2018-05-02 13:43:14 +02:00
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
2017-05-02 21:33:52 +02:00
|
|
|
language: go
|
|
|
|
go:
|
build: Use Go 1.14
This implies some notable changes that will have a visible impact to
end-users of official Terraform releases:
- Terraform is no longer compatible with MacOS 10.10 Yosemite, and
requires at least 10.11 El Capitan. (Relatedly, Go 1.14 is planned to be
the last release to support El Capitan, so while that remains supported
for now, it's notable that Terraform 0.13 is likely to be the last major
release of Terraform supporting it, with 0.14 likely to further require
MacOS 10.12 Sierra.)
- Terraform is no longer compatible with FreeBSD 10.x, which has reached
end-of-life. Terraform now requires FreeBSD 11.2 or later.
- Terraform now supports TLS 1.3 when it makes connections to remote
services such as backends and module registries. Although TLS 1.3 is
backward-compatible in principle, some legacy systems reportedly work
incorrectly when attempting to negotiate it. (This change does not
affect outgoing requests made by provider plugins, though they will see
a similar change in behavior once built with Go 1.13 or later.)
- Ed25519 certificates are now supported for TLS 1.2 and 1.3 connections.
- On UNIX systems where "use-vc" is set in resolv.conf, TCP will now be
used for DNS resolution. This is unlikely to cause issues in practice
because a system set up in this way can presumably already reach its
nameservers over TCP (or else other applications would misbehave), but
could potentially lead to lookup failures in unusual situations where a
system only runs Terraform, has historically had "use-vc" in its
configuration, but yet is blocked from reaching its configured
nameservers over TCP.
- Some parts of Terraform now support Unicode 12.0 when working with
strings. However, notably the Terraform Language itself continues to
use the text segmentation tables from Unicode 9.0, which means it lacks
up-to-date support for recognizing modern emoji combining forms as
single characters. (We may wish to upgrade the text segmentation tables
to Unicode 12.0 tables in a later commit, to restore consistency.)
This also includes some changes to the contents of "vendor", and
particularly to the format of vendor/modules.txt, per the changes to
vendoring in the Go 1.14 toolchain. This new syntax is activated by the
specification of "go 1.14" in the go.mod file.
Finally, the exact format of error messages from the net/http library has
changed since Go 1.12, and so a couple of our tests needed updates to
their expected error messages to match that.
2020-03-04 03:49:56 +01:00
|
|
|
- "1.14"
|
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-09-09 09:17:56 +02: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 23:07:10 +01:00
|
|
|
env:
|
2019-09-06 21:45:31 +02:00
|
|
|
- CONSUL_VERSION=0.7.5 GOMAXPROCS=4 GO111MODULE=on GOPROXY=https://proxy.golang.org/
|
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
|
2018-10-18 18:27:48 +02:00
|
|
|
- make tools
|
2017-10-30 19:04:25 +01:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- git config --global url.https://github.com/.insteadOf ssh://git@github.com/
|
|
|
|
|
2017-05-02 21:33:52 +02:00
|
|
|
script:
|
2020-03-03 20:10:04 +01:00
|
|
|
- make fmtcheck generate
|
2020-03-25 20:37:38 +01:00
|
|
|
- make test
|
|
|
|
# - bash scripts/travis.sh
|
2019-01-29 15:44:30 +01:00
|
|
|
- go mod verify
|
2017-09-19 21:00:26 +02:00
|
|
|
- make e2etest
|
2018-11-20 20:59:48 +01:00
|
|
|
- GOOS=windows go build -mod=vendor
|
2018-11-17 03:58:50 +01: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 13:43:14 +02:00
|
|
|
|
2020-03-03 18:19:07 +01:00
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
|
2015-01-22 21:57:01 +01:00
|
|
|
branches:
|
|
|
|
only:
|
2017-04-19 02:10:41 +02:00
|
|
|
- master
|
2018-12-14 21:29:18 +01:00
|
|
|
- v0.11
|
2020-03-03 18:15:12 +01:00
|
|
|
- v0.12
|
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
|