2017-06-09 18:30:08 +00:00
|
|
|
dist: trusty
|
2018-04-27 15:57:41 +00:00
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
2017-06-09 18:30:08 +00:00
|
|
|
language: go
|
|
|
|
go:
|
2019-02-01 15:58:37 +00:00
|
|
|
- "1.11.x"
|
2019-02-05 19:47:40 +00:00
|
|
|
env:
|
2019-02-15 00:52:09 +00:00
|
|
|
- GO111MODULE=on
|
|
|
|
GOFLAGS=-mod=vendor
|
2017-06-09 18:30:08 +00:00
|
|
|
|
|
|
|
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-12-11 21:30:47 +00:00
|
|
|
- make tools
|
2017-06-09 18:30:08 +00:00
|
|
|
|
|
|
|
script:
|
2018-12-11 21:30:47 +00:00
|
|
|
- make lint
|
2017-06-09 18:30:08 +00:00
|
|
|
- make test
|
2018-04-27 15:57:41 +00:00
|
|
|
- make website-test
|
2017-06-09 18:30:08 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|