Skip to content

Commit

Permalink
Better CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Blinov committed Aug 6, 2018
1 parent d8c2ba1 commit 48fd162
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
language: go
go:
- 1.9
- 1.x
- tip

before_script:
- go get -u github.com/mholt/caddy
- go get -u github.com/oschwald/maxminddb-golang
matrix:
allow_failures:
- go: tip
fast_finish: true

script: go test .
before_install:
- "if [[ $TRAVIS_GO_VERSION == 1.10 ]]; then go get -v github.com/golang/lint/golint; fi"

install:
- go get -v -t ./...
- go get -u github.com/mholt/caddy
- go get -u github.com/oschwald/maxminddb-golang

script:
- go test .
- "if [[ $TRAVIS_GO_VERSION == 1.10 ]]; then go get -v github.com/golang/lint/golint; fi"
- "if [[ $TRAVIS_GO_VERSION == 1.10 ]]; then go vet ./...; fi"
- "if [[ $TRAVIS_GO_VERSION == 1.10 ]]; then golint .; fi"

0 comments on commit 48fd162

Please sign in to comment.