.travis.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. cache:
  12. npm: true
  13. directories:
  14. - ~/.cache
  15. script:
  16. - cd tools
  17. - git clone --depth=1 https://github.com/wenzhixin/bootstrap-table-examples
  18. - npm run pre-commit
  19. if: branch != master AND type = pull_request
  20. - stage: test
  21. language: node_js
  22. node_js:
  23. - 12
  24. name: "Cypress Test"
  25. cache:
  26. npm: true
  27. directories:
  28. - ~/.cache
  29. script:
  30. - git clone --depth=1 https://github.com/wenzhixin/bootstrap-table-examples cypress/html
  31. - npm run css:build:src
  32. - npm run test
  33. if: branch != master AND type = pull_request
  34. - stage: deploy
  35. name: "Deploy docs"
  36. language: ruby
  37. rvm:
  38. - 2.4.1
  39. before_install:
  40. - nvm install 12
  41. script: ./deploy.sh
  42. if: branch = master AND type = push
  43. cache: bundler
  44. env:
  45. global:
  46. - ENCRYPTION_LABEL: "5453d0fdf68a"
  47. - COMMIT_AUTHOR_EMAIL: "wenzhixin2010@gmail.com"