forked from quic-go/quic-go
The benefits: - Speed up chrome tests (from 160s to 34s on my machine). - Allow us to remove docker, which caused quite a few headaches. - Gets us a more current Chrome, so now we run tests against all supported versions. - We don't touch the FS anymore. - We no longer depend on sudo for travis, which means we can use their new container-based infrastructure. This also speeds up our tests :) Tests are now implemented in javascript; the server detects when they are complete and kills Chrome. Fixes #417.
38 lines
889 B
YAML
38 lines
889 B
YAML
dist: trusty
|
|
|
|
addons:
|
|
hosts:
|
|
- quic.clemente.io
|
|
|
|
language: go
|
|
|
|
go:
|
|
- 1.7.x
|
|
- 1.8.x
|
|
|
|
# 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:
|
|
- TRAVIS_GOARCH=amd64 TESTMODE=unit
|
|
- TRAVIS_GOARCH=amd64 TESTMODE=integration
|
|
- TRAVIS_GOARCH=386 TESTMODE=unit
|
|
- TRAVIS_GOARCH=386 TESTMODE=integration
|
|
|
|
# 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
|
|
- "export DISPLAY=:99.0"
|
|
- "Xvfb $DISPLAY &"
|
|
|
|
script:
|
|
- .travis/script.sh
|
|
|
|
after_success:
|
|
- .travis/after_success.sh
|