Skip to content

Commit

Permalink
feat: Merge pull request #5 from pelias/repo-crawler-add-dep-check
Browse files Browse the repository at this point in the history
Add dependency checks to pre-commit and travis
  • Loading branch information
orangejulius authored Mar 28, 2017
2 parents 0b066f1 + 71ad451 commit 9691434
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
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
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"scripts": {
"lint": "jshint .",
"test": "node test/index | tap-dot",
"travis": "npm test",
"travis": "npm run check-dependencies && npm test",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"validate": "npm ls"
"validate": "npm ls",
"check-dependencies": "node_modules/.bin/npm-check --production"
},
"repository": {
"type": "git",
Expand All @@ -29,6 +30,7 @@
},
"devDependencies": {
"jshint": "^2.8.0",
"npm-check": "^5.4.0",
"precommit-hook": "^3.0.0",
"tap-dot": "^1.0.5",
"tape": "^4.6.3",
Expand All @@ -40,6 +42,7 @@
"pre-commit": [
"lint",
"validate",
"test"
"test",
"check-dependencies"
]
}

0 comments on commit 9691434

Please sign in to comment.