.travis.yml 725 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. sudo: required
  2. dist: trusty
  3. language: node_js
  4. node_js:
  5. - '10.9.0'
  6. addons:
  7. apt:
  8. sources:
  9. - google-chrome
  10. packages:
  11. - google-chrome-stable
  12. - google-chrome-beta
  13. git:
  14. depth: 1
  15. jobs:
  16. include:
  17. - env: "MODE=build"
  18. - env: "MODE=lint"
  19. - env: "MODE=test-coverage"
  20. - env: "DEPLOY_MODE=artifacts"
  21. if: branch = master
  22. matrix:
  23. allow_failures:
  24. - env: "DEPLOY_MODE=artifacts"
  25. before_install:
  26. - export CHROME_BIN=chromium-browser
  27. - export DISPLAY=:99.0
  28. - sh -e /etc/init.d/xvfb start
  29. install:
  30. - chmod +x -R scripts
  31. - yarn
  32. script:
  33. - ./scripts/_ci/travis.sh
  34. cache:
  35. yarn: true
  36. directories:
  37. - ./node_modules/