.travis.yml 731 B

123456789101112131415161718192021222324252627282930313233
  1. language: node_js
  2. sudo: false
  3. node_js:
  4. # https://github.com/nodejs/LTS
  5. - "6" # ends April 2019
  6. - "8" # ends December 2019
  7. - "10" # ends April 2021
  8. cache:
  9. directories:
  10. - node_modules
  11. env:
  12. - HUSKY_SKIP_INSTALL=true
  13. before_script:
  14. - npm install coveralls
  15. # Make npm run work for the script phase:
  16. - if [ "x$TRAVIS_NODE_VERSION" = "x6" ]; then npm config set ignore-scripts false; fi
  17. # these build targets only need to run once per build, so let's conserve a few resources
  18. - if [ "x$TRAVIS_NODE_VERSION" = "x10" ]; then npm run lint; fi
  19. script:
  20. - npm run test-check-coverage
  21. after_success:
  22. - if [ "x$TRAVIS_NODE_VERSION" = "x10" ]; then cat ./coverage/lcov.info | coveralls lib; fi
  23. git:
  24. depth: 3