Skip to content

Commit

Permalink
🤖Add codecov (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 committed Jul 2, 2019
1 parent a60e4b1 commit c3c888a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ jobs:
- run:
name: Test
command: yarn test
- run:
name: report-coverage
command: yarn codecov
15 changes: 15 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
codecov:
notify:
require_ci_to_pass: no
comment:
layout: "header, changes, diff, files"
behavior: default
coverage:
status:
patch:
default:
target: 80%
project:
default:
target: auto
threshold: 1%
13 changes: 12 additions & 1 deletion packages/opentelemetry-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"types": "build/src/index.d.ts",
"repository": "open-telemetry/opentelemetry-js",
"scripts": {
"test": "nyc ts-mocha -p ./tsconfig.json test/**/*.ts",
"test": "nyc ts-mocha -p tsconfig.json test/**/*.ts",
"tdd": "yarn test -- --watch-extensions ts --watch",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json",
"clean": "rimraf build/*",
Expand Down Expand Up @@ -35,6 +35,17 @@
"LICENSE",
"README.md"
],
"nyc": {
"extension": [
".ts"
],
"exclude": [
"src/index.ts",
"**/*.d.ts",
"build/**/**/*.js"
],
"all": true
},
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit c3c888a

Please sign in to comment.