.travis.yml 958 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 DISPLAY=:99.0
  18. - sh -e /etc/init.d/xvfb start
  19. - npm i -g yarn
  20. install:
  21. - yarn add mgit2 --ignore-workspace-root-check
  22. - mgit sync --resolver-url-template="https://github.com/\${ path }.git"
  23. - git checkout package.json yarn.lock
  24. - rm -rf node_modules
  25. - yarn install
  26. script:
  27. - yarn run test --reporter=dots
  28. - yarn run docs:api --validate-only
  29. - 'if [ $TRAVIS_TEST_RESULT -eq 0 ]; then
  30. travis_wait yarn run docs:build-and-publish-nightly;
  31. fi'
  32. notifications:
  33. slack:
  34. rooms:
  35. - secure: NKUpSnmkmlRRua0URoQJjEqNfIHx6tuqJhVCbQ6vU5rdUdw6A43OfG7Qym3MRQlXymFuIF0MUsOrS6t0GeXE9hSpC+5ynF02E5wdTD1/R7Tjq0XEdx0mXJTYjuOQA16fvwMxm5p3Ub5uWpSH+gBtyG86UPCbVSxDvvmxHqResAw=
  36. on_success: change
  37. on_failure: always
  38. on_pull_requests: false