8
0

.travis.yml 874 B

123456789101112131415161718192021222324252627282930313233
  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. node_js:
  11. - "6"
  12. cache:
  13. - node_modules
  14. before_install:
  15. - export DISPLAY=:99.0
  16. - sh -e /etc/init.d/xvfb start
  17. install:
  18. - npm install mgit2 lerna
  19. - mgit bootstrap --resolver-url-template="https://github.com/\${ path }.git"
  20. - lerna bootstrap
  21. script:
  22. - npm t -- --reporter=dots
  23. - npm run docs:api -- --validate-only
  24. - 'if [ $TRAVIS_TEST_RESULT -eq 0 ]; then
  25. travis_wait npm run docs:build-and-publish-nightly;
  26. fi'
  27. notifications:
  28. slack:
  29. rooms:
  30. - secure: NKUpSnmkmlRRua0URoQJjEqNfIHx6tuqJhVCbQ6vU5rdUdw6A43OfG7Qym3MRQlXymFuIF0MUsOrS6t0GeXE9hSpC+5ynF02E5wdTD1/R7Tjq0XEdx0mXJTYjuOQA16fvwMxm5p3Ub5uWpSH+gBtyG86UPCbVSxDvvmxHqResAw=
  31. on_success: change
  32. on_failure: always
  33. on_pull_requests: false