Skip to content

Commit

Permalink
Added test:ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
orangemug committed May 18, 2019
1 parent 8e8febb commit e49158f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ templates:
- node_modules
key: v1-dependencies-{{ arch }}-{{ checksum "package.json" }}

- run: "yarn test | ./node_modules/.bin/coveralls"
- run: "yarn run test:ci | ./node_modules/.bin/coveralls"
- store_artifacts:
path: ./artifacts/coverage
destination: coverage
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"main": "lib/index.js",
"scripts": {
"test": "npm run test:lint && npm run test:unit",
"test:ci": "npm run test:lint && npm run test:ci:unit",
"test:lint": "xo",
"test:unit": "nyc mocha test/index.js"
"test:unit": "nyc mocha test/index.js",
"test:ci:unit": "nyc --reporter=text-lcov mocha test/index.js"
},
"engines": {
"node": ">=10.0.0"
Expand All @@ -28,8 +30,7 @@
"report-dir": "artifacts/coverage",
"reporter": [
"html",
"text-summary",
"text-lcov"
"text-summary"
],
"branches": 100,
"lines": 100,
Expand Down

0 comments on commit e49158f

Please sign in to comment.