Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code coverage upload to CircleCI #433

Merged
merged 5 commits into from
Feb 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
working_directory: ~/repo

steps:
- run: sudo npm i -g codeclimate-test-reporter

- checkout

# Download and cache dependencies
Expand All @@ -33,4 +31,5 @@ jobs:

- run: yarn lint
- run: yarn run test
- run: codeclimate-test-reporter < test/unit/coverage/lcov.info
post:
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
19 changes: 19 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
coverage:
precision: 2
round: down
range: "70...100"

status:
project:
default: on
patch:
default: on
changes:
default: off

comment:
layout: "header, reach, diff, flags, files, footer"
behavior: default
require_changes: no
require_base: no
require_head: yes