Merge pull request #353 from fancycode/travis_tags

Test different build configurations on Travis.
This commit is contained in:
mattn 2016-11-08 16:47:13 +09:00 committed by GitHub
commit 14e5ed1773
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,11 @@
language: go language: go
sudo: required sudo: required
dist: trusty dist: trusty
env:
- GOTAGS=
- GOTAGS=libsqlite3
- GOTAGS=trace
- GOTAGS=libsqlite3 trace
go: go:
- 1.5 - 1.5
- 1.6 - 1.6
@ -10,4 +15,4 @@ before_install:
- go get golang.org/x/tools/cmd/cover - go get golang.org/x/tools/cmd/cover
script: script:
- $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx - $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx
- go test -race -v . -tags "libsqlite3" - go test -race -v . -tags "$GOTAGS"