.travis.yml 987 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. language: go
  2. os:
  3. - linux
  4. - osx
  5. addons:
  6. apt:
  7. update: true
  8. env:
  9. matrix:
  10. - GOTAGS=
  11. - GOTAGS=libsqlite3
  12. - GOTAGS="sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable"
  13. - GOTAGS=sqlite_vacuum_full
  14. go:
  15. - 1.9.x
  16. - 1.10.x
  17. before_install:
  18. - |
  19. if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
  20. brew update
  21. brew upgrade icu4c
  22. fi
  23. - |
  24. go get github.com/smartystreets/goconvey
  25. if [[ "${GOOS}" != "windows" ]]; then
  26. go get github.com/mattn/goveralls
  27. go get golang.org/x/tools/cmd/cover
  28. fi
  29. script:
  30. - GOOS=$(go env GOOS) GOARCH=$(go env GOARCH) go build -v -tags "${GOTAGS}" .
  31. - |
  32. if [[ "${GOOS}" != "windows" ]]; then
  33. $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx
  34. go test -race -v . -tags "${GOTAGS}"
  35. fi