Skip to content

Commit

Permalink
feat: Merge pull request #56 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
Diana Shkolnikov authored Apr 6, 2017
2 parents fa1aae1 + 7f8721f commit 9a3535b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 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
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"scripts": {
"units": "node test/run.js | tap-spec",
"test": "npm run units",
"travis": "npm test",
"travis": "npm run check-dependencies && npm test",
"lint": "jshint .",
"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 @@
},
"devDependencies": {
"event-stream": "^3.3.2",
"npm-check": "^5.4.0",
"precommit-hook": "^3.0.0",
"proxyquire": "^1.7.10",
"semantic-release": "^6.3.2",
"tap-spec": "^4.1.1",
"tape": "^4.4.0",
"semantic-release": "^6.3.2"
"tape": "^4.4.0"
},
"pre-commit": [
"lint",
"validate",
"test"
"test",
"check-dependencies"
]
}

0 comments on commit 9a3535b

Please sign in to comment.