Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 320f2e3

Browse files
committed
Change travis to only get Go dependencies for the current directory.
Previously it would fetch all the demo deps, which only work on Go 1.9 or later.
1 parent 30412d4 commit 320f2e3

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.travis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,21 @@ sudo: false
33

44
language: go
55
go:
6-
- 1.7.x
7-
- 1.8.x
8-
- 1.9.x
9-
- tip
6+
- "1.7.x"
7+
- "1.8.x"
8+
- "1.9.x"
9+
- "1.10.x"
10+
- "tip"
1011

1112
before_install:
1213
- go get github.com/mattn/goveralls
1314
- go get golang.org/x/tools/cmd/cover
1415

16+
# Only install and run the tests for the current directory
17+
# This avoids testing the demo directory (which has no tests) and
18+
# depends on packages that only support Go 1.9+.
19+
install:
20+
- go get -t -v .
21+
1522
script:
16-
- travis_retry $HOME/gopath/bin/goveralls -service=travis-ci
23+
- travis_retry $HOME/gopath/bin/goveralls -service=travis-ci -package .

0 commit comments

Comments
 (0)