-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
31 lines (26 loc) · 1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: go
go:
- "1.13.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:
matrix:
- 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:
- travis_retry go get golang.org/x/tools/cmd/cover
- travis_retry go get github.com/onsi/ginkgo/ginkgo
- travis_retry 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 -skipPackage integrationtests
- ginkgo -r --randomizeAllSpecs --randomizeSuites --trace --progress integrationtests
after_success:
- cat quic-conn.coverprofile > coverage.txt
- cat */*.coverprofile >> coverage.txt
- bash <(curl -s https://codecov.io/bash) -f coverage.txt