Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Add coveralls config and update travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilome committed Sep 23, 2018
1 parent f225a2e commit f1a5dbb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.env
.nyc_output/
.coveralls.yml
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ services:
- postgresql
before_script:
- psql -c 'create database recipebooktravis;' -U postgres
after_success: npm run coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"start": "node app.js",
"test": "export NODE_ENV=test && nyc mocha tests/**/*.spec.js --exit",
"dev": "nodemon app.js",
"test-watch": "nodemon --exec 'npm test'"
"test-watch": "nodemon --exec 'npm test'",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"keywords": [
"node-postgres"
Expand Down

0 comments on commit f1a5dbb

Please sign in to comment.