Skip to content

Commit

Permalink
Merge remote-tracking branch 'travis' into wip
Browse files Browse the repository at this point in the history
  • Loading branch information
junderw committed Dec 15, 2017
2 parents bc788be + 025c4bc commit c601801
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
sudo: false
language: node_js
node_js:
- "4"
- "5"
- "6"
- "7"
- "8"
matrix:
include:
- node_js: "7"
env: TEST_SUITE=coverage
include:
- node_js: "7"
env: TEST_SUITE=standard
env:
- TEST_SUITE=unit
script: npm run-script $TEST_SUITE
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@
"description": "A library for encoding and decoding lightning network payment requests as defined in [BOLT #11](https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md).",
"main": "payreq.js",
"scripts": {
"coverage": "nyc --check-coverage --branches 90 --functions 90 tape test/*.js",
"coverage-report": "nyc report --reporter=lcov",
"coverage": "nyc --check-coverage --branches 90 --functions 90 npm run unit",
"standard": "standard",
"test": "tape test/*.js | tap-dot"
"test": "npm run standard && npm run coverage",
"unit": "tape test/*.js"
},
"devDependencies": {
"nyc": "^6.4.0",
"standard": "*",
"tape": "^4.8.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit c601801

Please sign in to comment.