Skip to content

Commit

Permalink
ci/test.sh: Work with BSD sed
Browse files Browse the repository at this point in the history
  • Loading branch information
nhooyr committed Jan 9, 2021
1 parent 84466c0 commit b4a9fda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ main() {
cd "$(dirname "$0")/.."

go test -timeout=30m -covermode=atomic -coverprofile=ci/out/coverage.prof -coverpkg=./... "$@" ./...
sed -i '/stringer\.go/d' ci/out/coverage.prof
sed -i '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof
sed -i '/examples/d' ci/out/coverage.prof
sed -i.bak '/stringer\.go/d' ci/out/coverage.prof
sed -i.bak '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof
sed -i.bak '/examples/d' ci/out/coverage.prof

# Last line is the total coverage.
go tool cover -func ci/out/coverage.prof | tail -n1
Expand Down

0 comments on commit b4a9fda

Please sign in to comment.