You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
816 B

4 years ago
  1. version: ~> 1.0
  2. language: node_js
  3. os:
  4. - linux
  5. cache:
  6. directories:
  7. - "$HOME/.npm"
  8. - "$(nvm cache dir)"
  9. - "$(nvm_version_path $(nvm_version_remote 0.4))"
  10. - "$(nvm_version_path $(nvm_version_remote 0.6))"
  11. - "$(nvm_version_path $(nvm_version_remote 0.10))"
  12. import:
  13. - ljharb/travis-ci:node/all.yml
  14. - ljharb/travis-ci:node/pretest.yml
  15. - ljharb/travis-ci:node/posttest.yml
  16. script:
  17. - 'if [ -n "${COVERAGE-}" ]; then npm run coverage && bash <(curl -s https://codecov.io/bash) -f coverage/*.json; fi'
  18. matrix:
  19. include:
  20. - node_js: "8"
  21. env: COVERAGE=true
  22. - node_js: "4"
  23. env: COVERAGE=true
  24. - node_js: "0.12"
  25. env: COVERAGE=true
  26. - node_js: "0.8"
  27. env: COVERAGE=true
  28. exclude:
  29. - node_js: "0.12"
  30. env: TEST=true
  31. - node_js: "0.8"
  32. env: TEST=true