Skip to content

Commit

Permalink
ci: add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc authored and crawshaw committed Nov 10, 2017
1 parent 0967e9f commit 7c717e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .ci-test
@@ -0,0 +1,11 @@
#!/bin/sh
# TODO: write this in ng
set -e
touch coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -v -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
6 changes: 6 additions & 0 deletions .travis.yml
Expand Up @@ -5,3 +5,9 @@ go:
- master
os:
- linux

script:
- ./.ci-test

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

0 comments on commit 7c717e7

Please sign in to comment.