Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Add codecov configuration (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
draffensperger committed Apr 12, 2019
1 parent 3af57f3 commit b8db17b
Show file tree
Hide file tree
Showing 18 changed files with 2,685 additions and 2,297 deletions.
18 changes: 16 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,19 @@ jobs:
machine: true
steps:
- checkout
- run: npm install
- run: npm test
- run:
name: Install modules and dependencies.
command: npm install
- run:
name: Check code style and linting
command: npm run check
- run:
name: Ensure code compiles to JS.
command: npm run compile
- run:
name: Run unit tests.
command: npm run test
- run:
name: Submit coverage data to codecov.
command: npm run codecov
when: always
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@opencensus/opencensus-web-base",
"version": "0.0.1",
"description": "OpenCensus is a toolkit for collecting application performance and behavior data.",
"description":
"OpenCensus is a toolkit for collecting application performance and behavior data.",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
"repository": "census-instrumentation/opencensus-web",
Expand All @@ -11,7 +12,8 @@
"test": "lerna run test",
"bootstrap": "lerna bootstrap",
"bump": "lerna publish",
"codecov": "lerna run codecov"
"codecov": "lerna run codecov",
"check": "lerna run check"
},
"keywords": [
"opencensus",
Expand Down
2 changes: 2 additions & 0 deletions packages/opencensus-web-all/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fixes:
- "::packages/opencensus-web-all/"
102 changes: 99 additions & 3 deletions packages/opencensus-web-all/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/opencensus-web-all/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"start:webpack-server": "webpack-dev-server --config ./webpack/dev-bundles.config.js",
"test": "karma start --single-run",
"test:start": "karma start",
"codecov": "codecov -f coverage/*.json",
"clean": "rimraf build/*",
"check": "gts check",
"compile": "tsc -p .",
Expand Down Expand Up @@ -46,6 +47,7 @@
"devDependencies": {
"@types/jasmine": "^3.3.4",
"@types/node": "^10.12.18",
"codecov": "^3.3.0",
"gts": "^0.9.0",
"istanbul-instrumenter-loader": "^3.0.1",
"jasmine": "^3.3.1",
Expand Down
2 changes: 2 additions & 0 deletions packages/opencensus-web-core/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fixes:
- "::packages/opencensus-web-core/"

0 comments on commit b8db17b

Please sign in to comment.