Skip to content

Commit

Permalink
chore(package): update npm scripts, add coveralls/standard/nyc to dev…
Browse files Browse the repository at this point in the history
…Deps
  • Loading branch information
tunnckoCore committed Sep 21, 2016
1 parent 8bb8593 commit 631acbd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
37 changes: 15 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
language: "node_js"
sudo: false
language: node_js

node_js:
- "0.10"
- "0.12"
- "4"
- "node"
- "6"
- "5"

notifications:
email:
on_success: never
on_failure: never

before_script:
- npm install standard
- standard

script:
- npm install istanbul
- node --harmony node_modules/.bin/istanbul cover test.js

after_success:
- npm install coveralls
- cat coverage/lcov.info | coveralls
- "4"
- "0.12"
- "0.10"

matrix:
fast_finish: true
allow_failures:
- node_js: "0.10"
- node_js: "4"
- node_js: "0.10"
- node_js: "0.12"

notifications:
email: false

after_success: npm run report-coverage
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"test": "standard && node test.js"
"lint": "standard --verbose",
"pretest": "npm run lint",
"test": "npm run coverage",
"posttest": "npm run lint:coverage",
"coverage": "nyc node test.js",
"lint:coverage": "nyc check-coverage --statements 100 --functions 100 --lines 100",
"report-coverage": "nyc report --reporter=text-lcov | coveralls"
},
"dependencies": {
"arr-includes": "^1.0.1",
Expand All @@ -18,12 +24,15 @@
"lazy-cache": "^2.0.1"
},
"devDependencies": {
"coveralls": "^2.11.14",
"gh-got": "^1.1.0",
"got": "^3.2.0",
"is-match": "^0.4.1",
"mukla": "^0.4.4",
"pre-commit": "^1.1.2",
"request": "^2.57.0"
"nyc": "^8.3.0",
"pre-commit": "^1.1.3",
"request": "^2.57.0",
"standard": "^8.1.0"
},
"files": [
"index.js",
Expand Down

0 comments on commit 631acbd

Please sign in to comment.