Skip to content

Commit

Permalink
chore(ci): run linter in parallel and only on node 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Fonger committed Aug 10, 2018
1 parent 10e0c81 commit a0c93b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
22 changes: 9 additions & 13 deletions .travis.yml
@@ -1,23 +1,19 @@
language: node_js language: node_js
sudo: false sudo: false
node_js: node_js: [10, 9, 8, 7, 6, 5, 4]
- "10"
- "9"
- "8"
- "7"
- "6"
- "5"
- "4"
before_script: before_script:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.6.6.tgz - wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.6.6.tgz
- tar -zxvf mongodb-linux-x86_64-3.6.6.tgz - tar -zxvf mongodb-linux-x86_64-3.6.6.tgz
- mkdir -p ./data/db/27017 - mkdir -p ./data/db/27017
- mkdir -p ./data/db/27000 - mkdir -p ./data/db/27000
- printf "\n--timeout 8000" >> ./test/mocha.opts - printf "\n--timeout 8000" >> ./test/mocha.opts
- ./mongodb-linux-x86_64-3.6.6/bin/mongod --fork --dbpath ./data/db/27017 --syslog --port 27017 - ./mongodb-linux-x86_64-3.6.6/bin/mongod --fork --dbpath ./data/db/27017 --syslog --port 27017
- sleep 3 - sleep 2
script: matrix:
- npm test include:
- node tools/checkNodeVersion.js "4.x || 5.x" || npm run lint - name: "👕Linter"
node_js: 10
before_script: skip
script: npm run lint
notifications: notifications:
email: false email: false
7 changes: 0 additions & 7 deletions tools/checkNodeVersion.js

This file was deleted.

0 comments on commit a0c93b1

Please sign in to comment.