Skip to content

Commit

Permalink
Report test coverage only on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
zenflow committed Feb 26, 2018
1 parent 257c1d5 commit 2b6ff90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ node_js:
- 6
- 8
- 9

script:
- npm run lint
- npm run coverage
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ install:
- ps: Install-Product node $env:nodejs_version
- npm install
test_script:
- npm test
- npm run lint
- npm run test
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"main": "lib/main.js",
"scripts": {
"pretest": "npm run lint",
"test": "lab -r lcov | coveralls",
"test": "lab",
"lint": "standard",
"postlint": "npm run lint-md",
"lint-md": "standard-markdown"
"lint-md": "standard-markdown",
"coverage": "lab -r lcov | coveralls"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 2b6ff90

Please sign in to comment.