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

Commit

Permalink
Change travis to only get Go dependencies for the current directory.
Browse files Browse the repository at this point in the history
Previously it would fetch all the demo deps, which only work on Go 1.9 or later.
  • Loading branch information
bramp committed Nov 22, 2018
1 parent 30412d4 commit 320f2e3
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,21 @@ sudo: false

language: go
go:
- 1.7.x
- 1.8.x
- 1.9.x
- tip
- "1.7.x"
- "1.8.x"
- "1.9.x"
- "1.10.x"
- "tip"

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

# Only install and run the tests for the current directory
# This avoids testing the demo directory (which has no tests) and
# depends on packages that only support Go 1.9+.
install:
- go get -t -v .

script:
- travis_retry $HOME/gopath/bin/goveralls -service=travis-ci
- travis_retry $HOME/gopath/bin/goveralls -service=travis-ci -package .

0 comments on commit 320f2e3

Please sign in to comment.