Skip to content

Commit 5ae33c4

Browse files
author
chi_Script
committed
codecov modified
1 parent 3a794ee commit 5ae33c4

File tree

6 files changed

+7
-3
lines changed

6 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
language: node_js
2-
node_js:
3-
- "stable"
42
services:
53
- postgrespsql
64
before_script:
75
- psql -c 'create database palandas;' -U postgres
86
script:
97
- npm test
8+
node_js:
9+
- "stable"
1010

11+
after_success:
12+
- nyc report --reporter=text-lcov > coverage.lcov
13+
- codecov

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"start": "node server.js",
88
"test": "mocha test/**/*.js --timeout 10,000 --exit",
9-
"coverage": "nyc mocha --require babel-core/register ./test/**/*.js --timeout=4000",
9+
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && CODECOV_TOKEN=eb5f30f4-b8fa-4d49-862c-c2373013c16b codecov",
10+
"coverage-dev": "nyc --require babel-core/register mocha ./test/**/*.spec.js --exit -w",
1011
"precommit": "pretty-quick --staged"
1112
},
1213
"keywords": [],
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)