.travis.yml 505 B

123456789101112131415161718192021222324252627
  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. cache: bundler
  21. env:
  22. global:
  23. - ENCRYPTION_LABEL: "5453d0fdf68a"
  24. - COMMIT_AUTHOR_EMAIL: "wenzhixin2010@gmail.com"