Skip to content

Commit

Permalink
Add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 committed Jun 27, 2019
1 parent 9a56922 commit fa0402f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
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 run test
- run:
name: report-coverage
command: yarn codecov
13 changes: 13 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
codecov:
notify:
require_ci_to_pass: no
comment:
layout: "header, changes, diff, files"
coverage:
status:
patch:
default:
target: 80%
project:
default:
target: 80%
17 changes: 14 additions & 3 deletions packages/opentelemetry-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"types": "build/src/index.d.ts",
"repository": "open-telemetry/opentelemetry-js",
"scripts": {
"test": "nyc ts-mocha -p ./tsconfig.json test/**/*.ts",
"tdd": "yarn run test -- --watch-extensions ts --watch",
"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/*",
"check": "gts check",
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 All @@ -44,7 +55,7 @@
"codecov": "^3.1.0",
"gts": "^1.0.0",
"mocha": "^6.1.0",
"nyc": "14.0.0",
"nyc": "^14.0.0",
"ts-mocha": "^6.0.0",
"ts-node": "^8.0.0",
"typescript": "^3.4.5"
Expand Down

0 comments on commit fa0402f

Please sign in to comment.