Skip to content

Commit

Permalink
Merge pull request #29 from ernoaapa/add-coverage-report
Browse files Browse the repository at this point in the history
Added integration to codecov.io for code coverage
  • Loading branch information
ernoaapa committed Feb 27, 2018
2 parents ab88aed + 0bc7afb commit 5b0fcc8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .circleci/config.yml
Expand Up @@ -9,10 +9,17 @@ jobs:
<<: *defaults
steps:
- checkout

- run: "! go fmt -l pkg cmd 2>&1 | read"
- run: go vet ./...
- run: go test -v ./...

# Run tests with overalls to generate also coverage report
- run: go get github.com/go-playground/overalls
- run: overalls -project=github.com/ernoaapa/eliot -covermode=atomic -- -race -v
# Send reports to codecov
- run: |
mv overalls.coverprofile coverage.txt
bash <(curl -s https://codecov.io/bash)
build:
<<: *defaults
Expand Down

0 comments on commit 5b0fcc8

Please sign in to comment.