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

Commit b8db17b

Browse files
Add codecov configuration (#40)
1 parent 3af57f3 commit b8db17b

18 files changed

Lines changed: 2685 additions & 2297 deletions

File tree

.circleci/config.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,19 @@ jobs:
1414
machine: true
1515
steps:
1616
- checkout
17-
- run: npm install
18-
- run: npm test
17+
- run:
18+
name: Install modules and dependencies.
19+
command: npm install
20+
- run:
21+
name: Check code style and linting
22+
command: npm run check
23+
- run:
24+
name: Ensure code compiles to JS.
25+
command: npm run compile
26+
- run:
27+
name: Run unit tests.
28+
command: npm run test
29+
- run:
30+
name: Submit coverage data to codecov.
31+
command: npm run codecov
32+
when: always

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "@opencensus/opencensus-web-base",
33
"version": "0.0.1",
4-
"description": "OpenCensus is a toolkit for collecting application performance and behavior data.",
4+
"description":
5+
"OpenCensus is a toolkit for collecting application performance and behavior data.",
56
"main": "build/src/index.js",
67
"types": "build/src/index.d.ts",
78
"repository": "census-instrumentation/opencensus-web",
@@ -11,7 +12,8 @@
1112
"test": "lerna run test",
1213
"bootstrap": "lerna bootstrap",
1314
"bump": "lerna publish",
14-
"codecov": "lerna run codecov"
15+
"codecov": "lerna run codecov",
16+
"check": "lerna run check"
1517
},
1618
"keywords": [
1719
"opencensus",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fixes:
2+
- "::packages/opencensus-web-all/"

packages/opencensus-web-all/package-lock.json

Lines changed: 99 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/opencensus-web-all/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"start:webpack-server": "webpack-dev-server --config ./webpack/dev-bundles.config.js",
1111
"test": "karma start --single-run",
1212
"test:start": "karma start",
13+
"codecov": "codecov -f coverage/*.json",
1314
"clean": "rimraf build/*",
1415
"check": "gts check",
1516
"compile": "tsc -p .",
@@ -46,6 +47,7 @@
4647
"devDependencies": {
4748
"@types/jasmine": "^3.3.4",
4849
"@types/node": "^10.12.18",
50+
"codecov": "^3.3.0",
4951
"gts": "^0.9.0",
5052
"istanbul-instrumenter-loader": "^3.0.1",
5153
"jasmine": "^3.3.1",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fixes:
2+
- "::packages/opencensus-web-core/"

0 commit comments

Comments
 (0)