diff options
| author | Jeremy Clerc <jclerc@google.com> | 2017-02-13 09:45:59 +0100 |
|---|---|---|
| committer | Jeremy Clerc <jclerc@google.com> | 2017-02-13 09:45:59 +0100 |
| commit | 53fc8a511a9cc4d5893166bbaffdc42ecc7754da (patch) | |
| tree | e01ae1ebf9fb9df2a3e0355d438b5ca68f5c9a46 /test.sh | |
| parent | 554df085c1c9235d36d2d1a49c6e77e82934c363 (diff) | |
| download | easypki-53fc8a511a9cc4d5893166bbaffdc42ecc7754da.tar.xz | |
Add build/coverage badge. Update travis config to have code coverage.
Diffstat (limited to 'test.sh')
| -rwxr-xr-x | test.sh | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e +echo "" > coverage.txt + +for d in $(go list ./... | grep -v vendor); do + go test -race -coverprofile=profile.out -covermode=atomic $d + if [ -f profile.out ]; then + cat profile.out >> coverage.txt + rm profile.out + fi +done |
