language: go
sudo: required
dist: trusty
env:
  - GOTAGS=
  - GOTAGS=libsqlite3
  - GOTAGS=trace
  #- GOTAGS="libsqlite3 trace" # trusty is too old for this
go:
  - 1.5
  - 1.6
  - tip
before_install:
  - go get github.com/mattn/goveralls
  - go get golang.org/x/tools/cmd/cover
script:
  - $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx
  - go test -race -v . -tags "$GOTAGS"
