.travis.yml 921 B

12345678910111213141516171819202122232425262728293031323334
  1. sudo: required
  2. dist: trusty
  3. addons:
  4. chrome: stable
  5. language: node_js
  6. cache:
  7. yarn: true
  8. node_js:
  9. - "8"
  10. cache:
  11. - node_modules
  12. before_install:
  13. - export START_TIME=$( date +%s )
  14. - export DISPLAY=:99.0
  15. - sh -e /etc/init.d/xvfb start
  16. - npm i -g yarn
  17. install:
  18. - yarn add mgit2 --ignore-workspace-root-check
  19. - mgit sync --resolver-url-template="https://github.com/\${ path }.git"
  20. - git checkout package.json yarn.lock
  21. - rm -rf node_modules
  22. - yarn install
  23. script:
  24. - yarn run test --reporter=dots
  25. - yarn run docs:api --validate-only
  26. - 'if [ $TRAVIS_TEST_RESULT -eq 0 ]; then
  27. travis_wait yarn run docs:build-and-publish-nightly;
  28. fi'
  29. after_script:
  30. - export END_TIME=$( date +%s )
  31. - ckeditor5-dev-tests-notify-travis-status
  32. env:
  33. global:
  34. - secure: RO140EQDHmEOPJPikk8eCY5IdHpnEKGm41p5U1ewAbeZv1DpCG+rSumR2JdYl75kFAaZvCSm1NuVMM+kmYd+/z+LQbKj7QH5G/UHNho3H89blIU6WlJhT0YR5vclm9rvnEvOtxnfODca1Qrw+CaCoJks2o4VYbJB7mOBVNsh7Bc=