8
0

.travis.yml 952 B

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