.travis.yml 528 B

1234567891011121314151617181920212223242526
  1. stages:
  2. - test
  3. - deploy
  4. jobs:
  5. include:
  6. - stage: test
  7. language: node_js
  8. node_js:
  9. - 10
  10. name: "Lint src and check docs"
  11. script: npm run pre-commit
  12. if: type = pull_request
  13. - stage: deploy
  14. name: "Deploy docs"
  15. language: ruby
  16. rvm:
  17. - 2.4.1
  18. script: ./deploy.sh
  19. if: branch = master AND type = push
  20. env:
  21. global:
  22. - ENCRYPTION_LABEL: "5453d0fdf68a"
  23. - COMMIT_AUTHOR_EMAIL: "wenzhixin2010@gmail.com"
  24. cache: bundler