.travis.yml 686 B

1234567891011121314151617181920212223242526272829303132
  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:
  12. - cd tools
  13. - git clone --depth=1 https://github.com/wenzhixin/bootstrap-table-examples
  14. - npm run pre-commit
  15. if: branch != master AND type = pull_request
  16. - stage: deploy
  17. name: "Deploy docs"
  18. language: ruby
  19. rvm:
  20. - 2.4.1
  21. before_install:
  22. - nvm install 12
  23. script: ./deploy.sh
  24. if: branch = master AND type = push
  25. cache: bundler
  26. env:
  27. global:
  28. - ENCRYPTION_LABEL: "5453d0fdf68a"
  29. - COMMIT_AUTHOR_EMAIL: "wenzhixin2010@gmail.com"