Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Aug 16, 2018
1 parent 80750cf commit eaa0433
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ language: node_js
matrix:
include:
- node_js: "4"
env: NODE_V=4
- node_js: "node"
env: CI=coverage
- node_js: "6.5.0"
- node_js: "6"
- node_js: "7"
- node_js: "8"
- node_js: "9"


before_install:
- if [ "$NODE_V" = "4" ]; then npm i -D eslint@4.19.1; fi
- if [ "$NODE_V" = "4" ]; then npm uninstall -D @mysticatea/eslint-plugin; fi
deploy:
skip_cleanup: true
provider: npm
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "ESLint plugin for John Resig-style micro templating(Lodash/Underscore.js template)",
"main": "lib/index.js",
"scripts": {
"lint": "eslint .",
"lint": "if-node-version \">=8\" eslint .",
"pretest": "npm run lint",
"test:base": "mocha \"tests/**/*.js\" --reporter dot",
"test": "if-node-version \">=8\" npm run test:nyc && npm run test:v:node4 && if-node-version \">=8\" npm run test:v:node8",
Expand Down

0 comments on commit eaa0433

Please sign in to comment.