.travis.yml 1.0 KB

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