Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dependency checks to pre-commit and travis #55

Merged
merged 1 commit into from
Mar 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- 4
- 6
matrix:
fast_finish: true
allow_failures:
fast_finish: true
env:
global:
- CXX=g++-4.8
script: "npm run travis"
script: npm run travis
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm i -g npm@^2.0.0
- npm i -g npm@^3.0.0
before_script:
- npm prune
after_success:
Expand Down
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"scripts": {
"lint": "jshint .",
"test": "npm run units",
"travis": "npm test",
"travis": "npm run check-dependencies && npm test",
"units": "node test/run.js | tap-spec",
"validate": "npm ls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"check-dependencies": "node_modules/.bin/npm-check --production"
},
"repository": {
"type": "git",
Expand All @@ -36,15 +37,17 @@
"mergeable": "0.0.0"
},
"devDependencies": {
"tape": "^4.5.0",
"tap-spec": "^4.1.1",
"precommit-hook": "^3.0.0",
"jshint": "^2.9.4",
"semantic-release": "^6.3.2"
"npm-check": "^5.4.0",
"precommit-hook": "^3.0.0",
"semantic-release": "^6.3.2",
"tap-spec": "^4.1.1",
"tape": "^4.5.0"
},
"pre-commit": [
"lint",
"validate",
"test"
"test",
"check-dependencies"
]
}