run lint separately (#32)

This commit is contained in:
Henry Zhu 2016-11-02 11:09:51 -04:00 committed by GitHub
parent 69e93fdb89
commit aa61aabb82
2 changed files with 12 additions and 3 deletions

View File

@ -1,12 +1,21 @@
git:
depth: 1
depth: 3
sudo: false
language: node_js
cache:
directories:
- node_modules
node_js:
- '7'
- '6'
- '5'
- '4'
- '0.12'
- '0.10'
script:
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
- 'if [ -z "${LINT-}" ]; then npm run ci ; fi'
matrix:
fast_finish: true
include:
- node_js: "node"
env: LINT=true

View File

@ -13,7 +13,7 @@
"dev": "babel -w src -d lib",
"lint": "eslint scripts src test",
"fix": "eslint scripts src test --fix",
"ci": "npm run lint && npm run test",
"ci": "npm run test",
"prepublish": "npm run build",
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'",
"test": "mocha ./test --compilers js:babel-register"