动态菜单和动态路由的 antd pro

12345678910111213141516171819202122232425262728293031323334353637
  1. language: node_js
  2. node_js:
  3. - "8"
  4. env:
  5. matrix:
  6. - TEST_TYPE=lint
  7. - TEST_TYPE=build
  8. - TEST_TYPE=test-all
  9. - TEST_TYPE=test-dist
  10. addons:
  11. apt:
  12. packages:
  13. - xvfb
  14. install:
  15. - export DISPLAY=':99.0'
  16. - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  17. - npm install
  18. script:
  19. - |
  20. if [ "$TEST_TYPE" = lint ]; then
  21. npm run lint
  22. elif [ "$TEST_TYPE" = build ]; then
  23. npm run build
  24. elif [ "$TEST_TYPE" = test-all ]; then
  25. npm run test:all
  26. elif [ "$TEST_TYPE" = test-dist ]; then
  27. npm run site
  28. mv dist/* ./
  29. php -S localhost:8000 &
  30. DEBUG=* npm test .e2e.js
  31. fi