.travis.yml 584 B

1234567891011121314151617181920212223242526
  1. language: node_js
  2. node_js:
  3. - "6.7.0"
  4. addons:
  5. apt:
  6. packages:
  7. - xvfb
  8. install:
  9. - export DISPLAY=':99.0'
  10. - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  11. - npm install
  12. branches:
  13. only: master
  14. script:
  15. - npm run lint
  16. # - npm test
  17. - npm run build:docs
  18. after_script:
  19. - cp ./docs/favicon.png ./dist/
  20. - cd dist
  21. - git init
  22. - git config user.name "Dafrok"
  23. - git config user.email "o.o@mug.dog"
  24. - git add .
  25. - git commit -m "Travis build docs"
  26. - git push --force --quiet "https://${GITHUB_TOKEN}@github.com/Dafrok/vue-baidu-map.git" master:gh-pages