.travis.yml 985 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. language: node_js
  2. os:
  3. - linux
  4. node_js:
  5. - "10"
  6. - "9"
  7. - "8"
  8. - "7"
  9. - "6"
  10. - "5"
  11. - "4"
  12. - "iojs-v3"
  13. - "iojs-v2"
  14. - "iojs-v1"
  15. - "0.12"
  16. before_install:
  17. - 'nvm install-latest-npm'
  18. install:
  19. - '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;'
  20. script:
  21. - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
  22. - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
  23. - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
  24. - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
  25. sudo: false
  26. env:
  27. - TEST=true
  28. matrix:
  29. fast_finish: true
  30. include:
  31. - node_js: "lts/*"
  32. env: PRETEST=true
  33. allow_failures:
  34. - node_js: "9"
  35. - node_js: "7"
  36. - node_js: "5"
  37. - node_js: "iojs-v3"
  38. - node_js: "iojs-v2"
  39. - node_js: "iojs-v1"
  40. - os: osx
  41. - env: TEST=true ALLOW_FAILURE=true
  42. - env: COVERAGE=true