build: Node.js@8.12
[express.git] / .travis.yml
blob239e8071d12dd86275bda539d1ac4d6907c49262
1 language: node_js
2 node_js:
3   - "0.10"
4   - "0.12"
5   - "1.8"
6   - "2.5"
7   - "3.3"
8   - "4.9"
9   - "5.12"
10   - "6.14"
11   - "7.10"
12   - "8.12"
13 matrix:
14   include:
15     - node_js: "9"
16       env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"
17     - node_js: "10"
18       env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"
19   allow_failures:
20     # Allow the nightly installs to fail
21     - env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"
22 sudo: false
23 cache:
24   directories:
25     - node_modules
26 before_install:
27   # Skip updating shrinkwrap / lock
28   - "npm config set shrinkwrap false"
30   # Remove all non-test dependencies
31   - "npm rm --save-dev connect-redis"
33   # Update Node.js modules
34   - "test ! -d node_modules || npm prune"
35   - "test ! -d node_modules || npm rebuild"
36 script:
37   - "npm run test-ci"
38   - "npm run lint"
39 after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls"