terraform-provider-google/.travis.yml
Riley Karson 8a237de2dd
Update gometalinter for modules, add staticcheck (#2908)
This isn't working locally, but it matches the changes made in https://github.com/terraform-providers/terraform-provider-azurerm/pull/2722 so maybe something freaky is going on and it will only work in CI?

Edit: This only works in CI (well, at least doesn't work locally for *me*) but the same is true in the Azure provider. Most of those rules can be turned back on provided we make the corresponding code changes, but let's bring back `unused` for now. I'll dupe over to tpgb on approval.
2019-02-05 11:47:40 -08:00

32 lines
524 B
YAML

dist: trusty
sudo: required
services:
- docker
language: go
go:
- "1.11.x"
env:
- GO111MODULE=off
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
- make tools
script:
- make lint
- make test
- make website-test
branches:
only:
- master
- 2.0.0
matrix:
fast_finish: true
allow_failures:
- go: tip