diff options
| -rw-r--r-- | .travis.yml | 12 | ||||
| -rw-r--r-- | README.md | 4 | ||||
| -rwxr-xr-x | test.sh | 12 |
3 files changed, 27 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 8e65008..35dfb22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,13 @@ language: go +sudo: false go: - - 1.x
\ No newline at end of file + - 1.x + +before_install: + - go get -t -v ./... + +script: + - ./test.sh + +after_success: + - bash <(curl -s https://codecov.io/bash) @@ -1,3 +1,7 @@ +[](https://travis-ci.org/google/easypki) +[](https://codecov.io/gh/google/easypki) + easypki ====== @@ -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 |
