.travis.yml 830 B

123456789101112131415161718192021222324252627282930313233343536
  1. language: node_js
  2. os:
  3. - linux
  4. node_js:
  5. - "14"
  6. - "12"
  7. - "10"
  8. - "8"
  9. - "6"
  10. - "4"
  11. - "0.12"
  12. - "0.10"
  13. cache:
  14. directories:
  15. - node_modules
  16. after_success:
  17. - npm run coveralls
  18. before_install:
  19. - 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
  20. - 'nvm install-latest-npm'
  21. install:
  22. - '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;'
  23. script:
  24. - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
  25. - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
  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. - os: osx
  35. - node_js: "0.12"
  36. - node_js: "0.10"