2018-01-03 19:19:49 +00:00
|
|
|
dist: trusty
|
2017-12-12 02:51:45 +00:00
|
|
|
|
|
|
|
addons:
|
|
|
|
hosts:
|
|
|
|
- quic.clemente.io
|
|
|
|
|
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2018-01-03 19:19:49 +00:00
|
|
|
- 1.9.2
|
2017-12-12 02:51:45 +00:00
|
|
|
|
|
|
|
# first part of the GOARCH workaround
|
|
|
|
# setting the GOARCH directly doesn't work, since the value will be overwritten later
|
|
|
|
# so set it to a temporary environment variable first
|
|
|
|
env:
|
2018-01-03 19:19:49 +00:00
|
|
|
global:
|
|
|
|
- TIMESCALE_FACTOR=20
|
|
|
|
matrix:
|
|
|
|
- TRAVIS_GOARCH=amd64 TESTMODE=unit
|
|
|
|
- TRAVIS_GOARCH=amd64 TESTMODE=integration
|
|
|
|
- TRAVIS_GOARCH=386 TESTMODE=unit
|
|
|
|
- TRAVIS_GOARCH=386 TESTMODE=integration
|
2017-12-12 02:51:45 +00:00
|
|
|
|
|
|
|
# second part of the GOARCH workaround
|
|
|
|
# now actually set the GOARCH env variable to the value of the temporary variable set earlier
|
|
|
|
before_install:
|
|
|
|
- go get golang.org/x/tools/cmd/cover
|
|
|
|
- go get github.com/onsi/ginkgo/ginkgo
|
|
|
|
- go get github.com/onsi/gomega
|
|
|
|
- export GOARCH=$TRAVIS_GOARCH
|
|
|
|
- go env # for debugging
|
2018-01-03 19:19:49 +00:00
|
|
|
- google-chrome --version
|
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "Xvfb $DISPLAY &> /dev/null &"
|
2017-12-12 02:51:45 +00:00
|
|
|
|
|
|
|
script:
|
2018-01-03 19:19:49 +00:00
|
|
|
- .travis/script.sh
|
2017-12-12 02:51:45 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- .travis/after_success.sh
|