diff options
| author | Eyal Posener <[email protected]> | 2017-05-07 19:54:57 +0300 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2017-05-08 06:30:01 +0300 |
| commit | 328144c31b5abd57be42f18ffb8a442c78619097 (patch) | |
| tree | 28d9df10ae15cb7736f6a57f904eaf95083097ee | |
| parent | dd75ca3afffdc4dadc7f3c74a7d7d63974f7b5df (diff) | |
[travis] test multiple packages
| -rw-r--r-- | .travis.yml | 4 | ||||
| -rwxr-xr-x | test.sh | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 7fef76c..214fc60 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,7 @@ before_install: - go get -u -t ./... script: - - go test -v -race -coverprofile=coverage.txt -covermode=atomic + - ./test.sh after_success: - bash <(curl -s https://codecov.io/bash) - -comment: off @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e +echo "" > coverage.txt + +for d in $(go list ./... | grep -v vendor); do + go test -v -race -coverprofile=profile.out -covermode=atomic $d + if [ -f profile.out ]; then + cat profile.out >> coverage.txt + rm profile.out + fi +done
\ No newline at end of file |
