.travis.yml 552 B

1234567891011121314151617181920212223242526272829
  1. stages:
  2. - test
  3. - deploy
  4. jobs:
  5. include:
  6. - stage: test
  7. language: node_js
  8. node_js:
  9. - 12
  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. before_install:
  19. - nvm install 12
  20. script: ./deploy.sh
  21. if: branch = master AND type = push
  22. cache: bundler
  23. env:
  24. global:
  25. - ENCRYPTION_LABEL: "5453d0fdf68a"
  26. - COMMIT_AUTHOR_EMAIL: "wenzhixin2010@gmail.com"