.travis.yml 557 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. language: node_js
  3. node_js:
  4. - node
  5. - "6"
  6. cache:
  7. yarn: true
  8. directories:
  9. - node_modules
  10. env:
  11. global:
  12. - NODE_ENV=development
  13. matrix:
  14. - JOB=test AST_COMPARE=1
  15. matrix:
  16. fast_finish: true
  17. include:
  18. - node_js: "node"
  19. env: JOB=lint
  20. install:
  21. - yarn install
  22. before_script:
  23. - yarn check-deps
  24. script:
  25. - if [ "${JOB}" = "lint" ]; then yarn lint && yarn lint-docs; fi
  26. - if [ "${JOB}" = "test" ]; then yarn test --runInBand --ci; fi
  27. - if [ "${JOB}" = "test" ]; then yarn codecov; fi
  28. branches:
  29. only:
  30. - master