Skip to content

Commit

Permalink
Testing Codecov (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvanloon authored and rauljordan committed Aug 7, 2018
1 parent 7a1f586 commit 36965be
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ bazel-*

# delve debugger output (not sure how to get rid of these)
**/debug.test

# Coverage outputs
coverage.txt
profile.out
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ matrix:
script:
-
go get github.com/alecthomas/gometalinter && gometalinter --install && gometalinter ./... --deadline=10m --exclude=client/internal/client_helper.go
- os: linux
env:
- coverage
script:
- ./coverage.sh
- bash <(curl -s https://codecov.io/bash)
- os: linux
env: V=0.15.0
before_install:
Expand Down
12 changes: 12 additions & 0 deletions coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v vendor); do
go test -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done

0 comments on commit 36965be

Please sign in to comment.