.travis.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. sudo: false
  2. language: node_js
  3. node_js:
  4. - '9'
  5. - '8'
  6. - '7'
  7. - '6'
  8. - '5'
  9. - '4'
  10. before_install:
  11. - 'nvm install-latest-npm'
  12. before_script:
  13. - 'if [ -n "${ESLINT-}" ]; then npm install --no-save "eslint@${ESLINT}" ; fi'
  14. script:
  15. - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
  16. - 'if [ -n "${TEST-}" ]; then npm run unit-test ; fi'
  17. env:
  18. - TEST=true
  19. after_success:
  20. - 'if [ -n "${TEST-}" ]; then npm run coveralls ; fi'
  21. matrix:
  22. fast_finish: true
  23. include:
  24. - node_js: 'lts/*'
  25. env: PRETEST=true
  26. - node_js: '9'
  27. env: TEST=true ESLINT=next
  28. - node_js: '8'
  29. env: TEST=true ESLINT=next
  30. - node_js: '7'
  31. env: TEST=true ESLINT=next
  32. - node_js: '6'
  33. env: TEST=true ESLINT=next
  34. - node_js: '9'
  35. env: TEST=true ESLINT=3
  36. - node_js: '8'
  37. env: TEST=true ESLINT=3
  38. - node_js: '7'
  39. env: TEST=true ESLINT=3
  40. - node_js: '6'
  41. env: TEST=true ESLINT=3
  42. - node_js: '5'
  43. env: TEST=true ESLINT=3
  44. - node_js: '4'
  45. env: TEST=true ESLINT=3
  46. allow_failures:
  47. - node_js: '9'
  48. - node_js: '7'
  49. - node_js: '5'
  50. - env: TEST=true ESLINT=next