Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 2b6f3cf

Browse files
committed
Add a standard .travis.yml file
1 parent eedd67f commit 2b6f3cf

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.travis.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
1+
dist: trusty
2+
sudo: required
3+
services:
4+
- docker
15
language: go
2-
36
go:
4-
- 1.11.x
5-
7+
- "1.11.x"
68
env:
79
- GO111MODULE=on
10+
GOFLAGS=-mod=vendor
811

9-
before_install:
10-
- go get golang.org/x/lint/golint
12+
install:
13+
# This script is used by the Travis build to install a cookie for
14+
# go.googlesource.com so rate limits are higher when using `go get` to fetch
15+
# packages that live there.
16+
# See: https://github.com/golang/go/issues/12933
17+
- bash scripts/gogetcookie.sh
18+
- make tools
1119

1220
script:
13-
- make check race release
21+
- make lint
22+
- make test
23+
- make website-test
24+
25+
branches:
26+
only:
27+
- master
28+
matrix:
29+
fast_finish: true
30+
allow_failures:
31+
- go: tip

0 commit comments

Comments
 (0)