Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit cdd2d1e

Browse files
authored
chore(project): added coveralls (#280)
chore(project): added coveralls
2 parents e2e5fcf + c5730cd commit cdd2d1e

File tree

3 files changed

+524
-29
lines changed

3 files changed

+524
-29
lines changed

.circleci/config.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ version: 2
33
aliases:
44
- &install
55
run: sudo npm install -g yarn && yarn install --frozen-lockfile --ignore-optional
6-
7-
defaults: &defaults
8-
working_directory: ~/repo
9-
docker:
10-
- image: circleci/node:10
11-
steps:
12-
- checkout
13-
- <<: *install
14-
- run: npm test
6+
- &defaults
7+
working_directory: ~/repo
8+
docker:
9+
- image: circleci/node:12
10+
steps:
11+
- checkout
12+
- <<: *install
13+
- run: npm test
1514

1615
jobs:
1716
test-node8:
@@ -58,6 +57,14 @@ jobs:
5857
export PATH="$(yarn bin):$PATH"
5958
pipenv run make html
6059
60+
cover:
61+
<<: *defaults
62+
steps:
63+
- checkout
64+
- <<: *install
65+
- run: npm run cover
66+
- run: npm run coveralls
67+
6168
workflows:
6269
version: 2
6370
test-publish:
@@ -68,3 +75,7 @@ workflows:
6875
- test-smoke
6976
- lint
7077
- docs
78+
- cover:
79+
requires:
80+
- test-node12
81+

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@
1111
"lint": "lerna exec --scope='*' --concurrency 1 --no-bail -- npm run lint",
1212
"lint:fix": "lerna exec --scope='*' --concurrency 1 --no-bail -- npm run lint:fix",
1313
"test": "lerna exec --scope='*' --concurrency 1 --no-bail -- npm run test",
14-
"cover": "exit 0"
14+
"cover": "nyc npm test",
15+
"coveralls": "nyc report --reporter=text-lcov | coveralls"
1516
},
1617
"devDependencies": {
1718
"@commitlint/cli": "7.3.2",
1819
"@commitlint/config-conventional": "7.3.1",
20+
"coveralls": "^3.0.4",
1921
"eslint": "^5.9.0",
2022
"eslint-config-airbnb-base": "^13.1.0",
2123
"eslint-plugin-import": "^2.14.0",
2224
"jsdoc": "^3.5.5",
23-
"lerna": "^3.4.0"
25+
"lerna": "^3.4.0",
26+
"nyc": "^14.1.1"
2427
}
2528
}

0 commit comments

Comments
 (0)