Skip to content

Commit f680ada

Browse files
authored
Travis: Use go 1.10's coverpkg (#50)
Go 1.10 allows us to remove the dependency to goverage
1 parent fe49f0b commit f680ada

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ language: go
22
sudo: required
33

44
go:
5-
- 1.9.x
5+
- 1.10.x
66
- stable
77
- master
88

9-
install:
10-
# We need goverage to run go tests with -coverprofile for multiple packages
11-
- go get github.com/haya14busa/goverage
12-
139
before_script:
1410
# We don't want to run the demo set test with race condition testing.
1511
# The demo set is large and race tests take a lot longer
@@ -19,7 +15,7 @@ script:
1915
# Run race tests
2016
- go test -v -race -run "$race_tests" -timeout 15m
2117
# We run all tests again to get full coverage, technically unncecessary tho
22-
- goverage -v -timeout 30m -coverprofile=coverage.txt $(go list ./... | grep -v msg | awk -vORS=' ' '{ print $1 }')
18+
- go test -v -timeout 30m -coverprofile=coverage.txt -coverpkg=$(go list ./... | grep -v msg | awk -vORS=, '{ print $1 }' | sed 's/,$/\n/') ./...
2319

2420
after_success:
2521
- bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)