Skip to content

Commit

Permalink
ci: Collect test code coverage information
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Mar 18, 2020
1 parent b4c6d63 commit 0daafd7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ commands:
export GOARCH=<<parameters.arch>>
go version
go env
go test -v
go test -v -coverprofile=coverage-<<parameters.arch>>.txt -covermode=count
jobs:

Expand All @@ -35,6 +35,9 @@ jobs:
arch: "amd64"
- test:
arch: "386"
- run:
name: "Codecov upload"
command: bash <(curl -s https://codecov.io/bash)
- run:
name: "Benchmark"
command: go test -run=- -bench=. -benchmem
Expand Down
10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
codecov:
require_ci_to_pass: no

coverage:
status:
project: no
patch: no

comment:
layout: "diff"

0 comments on commit 0daafd7

Please sign in to comment.