Skip to content

Commit

Permalink
Move to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Duchesne committed Sep 28, 2019
1 parent 8614f2b commit 9a2fa32
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 62 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ jobs:
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
go test ./...
./coverage.sh
bash ./test.sh
bash <(curl -s https://codecov.io/bash)
- name: Build Tag
if: github.ref != 'refs/heads/master'
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ jobs:
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
go test ./...
./coverage.sh
bash ./test.sh
bash <(curl -s https://codecov.io/bash)
56 changes: 0 additions & 56 deletions coverage.sh

This file was deleted.

12 changes: 12 additions & 0 deletions test.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 | grep -v "_mock.go" >> coverage.txt
rm profile.out
fi
done

0 comments on commit 9a2fa32

Please sign in to comment.