Skip to content

Commit

Permalink
Integrate travis and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-essam committed Aug 8, 2019
1 parent c25056a commit 943a56b
Show file tree
Hide file tree
Showing 4 changed files with 1,792 additions and 49 deletions.
4 changes: 4 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"include": "index.js",
"reporter": "text-summary"
}
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: node_js
node_js:
- '8'
- '10'
- '11'
- '12'
cache: yarn
script:
- yarn lint
- yarn test
after_success: 'yarn coveralls'
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"scripts": {
"release": "release-it",
"lint": "standard -v",
"test": "mocha"
"test": "nyc mocha",
"cover:report": "nyc report --reporter=html && open-cli ./coverage/index.html",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"engines": {
"node": ">=7.0.0"
"node": ">=8.0.0"
},
"repository": {
"type": "git",
Expand All @@ -29,10 +31,15 @@
],
"devDependencies": {
"chai": "^4.2.0",
"chai-datetime": "^1.5.0",
"coveralls": "^3.0.6",
"dirty-chai": "^2.0.1",
"mocha": "^6.2.0",
"nyc": "^14.1.1",
"open-cli": "^5.0.0",
"release-it": "^12.3.5",
"sinon": "^7.4.1"
"sinon": "^7.4.1",
"standard": "^13.1.0"
},
"standard": {
"env": {
Expand Down
Loading

0 comments on commit 943a56b

Please sign in to comment.