2012-10-29 09:24:18 +04:00
|
|
|
language: go
|
2018-05-23 20:20:57 +03:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
update: true
|
|
|
|
|
2016-11-08 10:40:35 +03:00
|
|
|
env:
|
2018-05-23 20:20:57 +03:00
|
|
|
matrix:
|
|
|
|
- GOTAGS=
|
|
|
|
- GOTAGS=libsqlite3
|
|
|
|
- GOTAGS=trace
|
2018-05-24 12:59:17 +03:00
|
|
|
- GOTAGS=sqlite_allow_uri_authority
|
|
|
|
- GOTAGS=sqlite_app_armor
|
|
|
|
- GOTAGS=sqlite_foreign_keys
|
|
|
|
- GOTAGS=sqlite_fts5
|
|
|
|
- GOTAGS=sqlite_icu
|
|
|
|
- GOTAGS=sqlite_introspect
|
|
|
|
- GOTAGS=sqlite_json
|
|
|
|
- GOTAGS=sqlite_secure_delete
|
|
|
|
- GOTAGS=sqlite_stat4
|
|
|
|
- GOTAGS=sqlite_vacuum_full
|
|
|
|
- GOTAGS=sqlite_vacuum_incr
|
|
|
|
- GOTAGS=sqlite_vtable
|
2018-05-23 20:20:57 +03:00
|
|
|
|
2013-08-29 05:03:00 +04:00
|
|
|
go:
|
2017-10-22 14:57:02 +03:00
|
|
|
- 1.7.x
|
|
|
|
- 1.8.x
|
|
|
|
- 1.9.x
|
2018-05-23 20:20:57 +03:00
|
|
|
- 1.10.x
|
2017-10-22 14:57:02 +03:00
|
|
|
- master
|
2018-05-23 20:20:57 +03:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: master
|
|
|
|
exclude:
|
|
|
|
- os: osx
|
|
|
|
go: 1.7.x
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
go: 1.7.x
|
|
|
|
env: GOTAGS= GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.7.x
|
|
|
|
env: GOTAGS= GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.7.x
|
|
|
|
env: GOTAGS=libsqlite3 GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.7.x
|
|
|
|
env: GOTAGS=libsqlite3 GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.7.x
|
|
|
|
env: GOTAGS=trace GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.7.x
|
|
|
|
env: GOTAGS=trace GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.7.x
|
|
|
|
env: GOTAGS=vtable GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.7.x
|
|
|
|
env: GOTAGS=vtable GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.8.x
|
|
|
|
env: GOTAGS= GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.8.x
|
|
|
|
env: GOTAGS= GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.8.x
|
|
|
|
env: GOTAGS=libsqlite3 GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.8.x
|
|
|
|
env: GOTAGS=libsqlite3 GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.8.x
|
|
|
|
env: GOTAGS=trace GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.8.x
|
|
|
|
env: GOTAGS=trace GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.8.x
|
|
|
|
env: GOTAGS=vtable GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.8.x
|
|
|
|
env: GOTAGS=vtable GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.9.x
|
|
|
|
env: GOTAGS= GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.9.x
|
|
|
|
env: GOTAGS= GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.9.x
|
|
|
|
env: GOTAGS=libsqlite3 GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.9.x
|
|
|
|
env: GOTAGS=libsqlite3 GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.9.x
|
|
|
|
env: GOTAGS=trace GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.9.x
|
|
|
|
env: GOTAGS=trace GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.9.x
|
|
|
|
env: GOTAGS=vtable GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.9.x
|
|
|
|
env: GOTAGS=vtable GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.10.x
|
|
|
|
env: GOTAGS= GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.10.x
|
|
|
|
env: GOTAGS= GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.10.x
|
|
|
|
env: GOTAGS=libsqlite3 GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.10.x
|
|
|
|
env: GOTAGS=libsqlite3 GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.10.x
|
|
|
|
env: GOTAGS=trace GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.10.x
|
|
|
|
env: GOTAGS=trace GOOS=windows GOARCH=amd64
|
|
|
|
- os: linux
|
|
|
|
go: 1.10.x
|
|
|
|
env: GOTAGS=vtable GOOS=windows GOARCH=386
|
|
|
|
- os: linux
|
|
|
|
go: 1.10.x
|
|
|
|
env: GOTAGS=vtable GOOS=windows GOARCH=amd64
|
|
|
|
|
|
|
|
|
2013-06-11 15:08:24 +04:00
|
|
|
before_install:
|
2018-05-23 20:20:57 +03:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew update
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [[ "${GOOS}" != "windows" ]]; then
|
|
|
|
go get github.com/mattn/goveralls
|
|
|
|
go get golang.org/x/tools/cmd/cover
|
|
|
|
fi
|
|
|
|
|
2013-06-11 15:08:24 +04:00
|
|
|
script:
|
2018-05-23 20:20:57 +03:00
|
|
|
- GOOS=$(go env GOOS) GOARCH=$(go env GOARCH) go build -v -tags "${GOTAGS}" .
|
|
|
|
- |
|
|
|
|
if [[ "${GOOS}" != "windows" ]]; then
|
|
|
|
$HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx
|
|
|
|
go test -race -v . -tags "${GOTAGS}"
|
2018-05-24 10:25:16 +03:00
|
|
|
fi
|