Merge pull request #562 from GJRTimmer/fix/travis-ci

Update Travis CI
This commit is contained in:
mattn 2018-05-24 17:53:35 +09:00 committed by GitHub
commit 29ac65fc30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 138 additions and 10 deletions

View File

@ -1,19 +1,147 @@
language: go language: go
sudo: required
dist: trusty os:
- linux
- osx
addons:
apt:
update: true
env: env:
- GOTAGS= matrix:
- GOTAGS=libsqlite3 - GOTAGS=
- GOTAGS=trace - GOTAGS=libsqlite3
- GOTAGS=vtable - GOTAGS=trace
- GOTAGS=vtable
go: go:
- 1.7.x - 1.7.x
- 1.8.x - 1.8.x
- 1.9.x - 1.9.x
- 1.10.x
- master - master
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
before_install: before_install:
- go get github.com/mattn/goveralls - |
- go get golang.org/x/tools/cmd/cover 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
script: script:
- $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx - GOOS=$(go env GOOS) GOARCH=$(go env GOARCH) go build -v -tags "${GOTAGS}" .
- go test -race -v . -tags "$GOTAGS" - |
if [[ "${GOOS}" != "windows" ]]; then
$HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx
go test -race -v . -tags "${GOTAGS}"
fi