forked from quic-go/quic-go
36 lines
901 B
YAML
36 lines
901 B
YAML
sudo: required
|
|
|
|
language: go
|
|
|
|
services:
|
|
- docker
|
|
|
|
go:
|
|
- 1.6
|
|
- 1.7beta1
|
|
|
|
# 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
|
|
- TRAVIS_GOARCH=386
|
|
|
|
# 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
|
|
|
|
script:
|
|
- go get -t ./...
|
|
- ginkgo -r --cover --randomizeAllSpecs --randomizeSuites --trace --progress
|
|
|
|
after_success:
|
|
- cat quic-go.coverprofile > coverage.txt
|
|
- cat */*.coverprofile >> coverage.txt
|
|
- bash <(curl -s https://codecov.io/bash) -f coverage.txt
|