UNPKG

931 BYAMLView Raw
1language: node_js
2os:
3 - linux
4node_js:
5 - "10"
6 - "9"
7 - "8"
8 - "7"
9 - "6"
10 - "5"
11 - "4"
12 - "iojs"
13 - "0.12"
14 - "0.10"
15 - "0.8"
16before_install:
17 - 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
18 - 'nvm install-latest-npm'
19install:
20 - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
21script:
22 - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
23 - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
24 - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
25 - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
26sudo: false
27env:
28 - TEST=true
29matrix:
30 fast_finish: true
31 include:
32 - node_js: "lts/*"
33 env: PRETEST=true
34 allow_failures:
35 - node_js: "9"
36 - node_js: "7"
37 - node_js: "5"
38 - node_js: "iojs"