terraform-provider-google/.travis.yml
Riley Karson ee48586fb2 Add gometalinter (#2627)
Parallel to https://github.com/terraform-providers/terraform-provider-azurerm/pull/2116

We need to run `gofmt -s` to switch over to the `gofmt` rule, and MM is going to complicate that. Once `1.20.0` is done, I'll run that command on flat MM files & add a `gofmt -s` step to MM generation (goimports does gofmt but doesn't do the s flag for silly reasons).

I'll duplicate this over to tpgb once this PR is merged.
2018-12-20 17:22:22 -08:00

31 lines
518 B
YAML

dist: trusty
sudo: required
services:
- docker
language: go
go:
- "1.11"
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 vendor-status
- make website-test
branches:
only:
- master
- 2.0.0
matrix:
fast_finish: true
allow_failures:
- go: tip