Skip to content

Commit

Permalink
feat: Merge pull request #233 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 d719b8a + 27b1ddf commit 160381b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 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
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"lodash": "^4.10.0",
"minimist": "1.2.0",
"pelias-address-deduplicator": "1.1.0",
"pelias-config": "2.7.1",
"pelias-config": "2.9.0",
"pelias-dbclient": "2.0.0",
"pelias-logger": "0.1.0",
"pelias-model": "4.4.0",
"pelias-wof-admin-lookup": "3.1.2",
"pelias-logger": "0.2.0",
"pelias-model": "4.6.0",
"pelias-wof-admin-lookup": "3.3.1",
"through2": "^2.0.3",
"through2-filter": "^2.0.0",
"through2-map": "^3.0.0",
Expand All @@ -28,12 +28,13 @@
"deep-diff": "^0.3.3",
"event-stream": "^3.3.2",
"jshint": "^2.9.4",
"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.5.0",
"temp": "^0.8.3",
"semantic-release": "^6.3.2"
"temp": "^0.8.3"
},
"scripts": {
"import": "node import.js",
Expand All @@ -43,9 +44,10 @@
"functional": "node test/functional.js | tap-spec",
"lint": "jshint .",
"validate": "npm ls",
"travis": "npm run test && npm run functional",
"travis": "npm run check-dependencies && npm run test && npm run functional",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"start": "node import.js"
"start": "node import.js",
"check-dependencies": "node_modules/.bin/npm-check --production"
},
"repository": {
"type": "git",
Expand All @@ -65,6 +67,7 @@
"pre-commit": [
"lint",
"validate",
"test"
"test",
"check-dependencies"
]
}

0 comments on commit 160381b

Please sign in to comment.