Skip to content

Commit 434b003

Browse files
committed
Now providing test coverage reporting for all of
the packages and sub-packages
1 parent d05ccc9 commit 434b003

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ before_install:
1010
# Install tools necessary to report code-coverage to Coveralls.io
1111
- go get github.com/mattn/goveralls
1212

13+
# Export some environment variables
14+
- export GO_TEST_COVERAGE_FILE_NAME='coverage.out'
15+
1316
install:
1417
# Get all imported packages
1518
- make install-deps install-deps-dev
@@ -24,11 +27,11 @@ script:
2427
- make copyright-lint
2528

2629
# Run tests
27-
- make test
30+
- make test-with-coverage-profile
2831

2932
after_success:
3033
# Report our code-coverage to Coveralls.io
31-
- goveralls -service=travis-ci
34+
- goveralls -service=travis-ci -coverprofile="${GO_TEST_COVERAGE_FILE_NAME}"
3235

3336
matrix:
3437
allow_failures:

0 commit comments

Comments
 (0)