.travis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. - npm version
  29. #- yarn run test --reporter=dots
  30. #- yarn run docs:api --validate-only
  31. #- 'if [ $TRAVIS_TEST_RESULT -eq 0 ]; then
  32. # travis_wait yarn run docs:build-and-publish-nightly;
  33. # fi'
  34. after_script:
  35. - export END_TIME=$( date +%s )
  36. - yarn add slack-notify @octokit/rest@^16.13.4 --ignore-workspace-root-check
  37. - node ./scripts/notify-travis-status.js
  38. env:
  39. global:
  40. - secure: RO140EQDHmEOPJPikk8eCY5IdHpnEKGm41p5U1ewAbeZv1DpCG+rSumR2JdYl75kFAaZvCSm1NuVMM+kmYd+/z+LQbKj7QH5G/UHNho3H89blIU6WlJhT0YR5vclm9rvnEvOtxnfODca1Qrw+CaCoJks2o4VYbJB7mOBVNsh7Bc=