azure-pipelines.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Node.js
  2. # Build a general Node.js project with npm.
  3. # Add steps that analyze code, save build artifacts, deploy, and more:
  4. # https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
  5. name: ant design pro
  6. trigger:
  7. - master
  8. jobs:
  9. - job: lintAndBuild
  10. pool:
  11. vmImage: 'Ubuntu-16.04'
  12. steps:
  13. - checkout: self
  14. clean: false
  15. - script: yarn install
  16. displayName: install
  17. - script: npm run lint
  18. displayName: lint
  19. - script: npm run build
  20. env:
  21. PROGRESS: none
  22. displayName: build
  23. - job: test
  24. pool:
  25. vmImage: 'Ubuntu-16.04'
  26. container:
  27. image: circleci/node:latest-browsers
  28. options: '-u root'
  29. steps:
  30. - script: yarn install
  31. displayName: install
  32. - script: npm run test:all
  33. env:
  34. PROGRESS: none
  35. UMI_UI: none
  36. displayName: test
  37. - job: Windows
  38. pool:
  39. vmImage: 'vs2017-win2016'
  40. steps:
  41. - task: NodeTool@0
  42. inputs:
  43. versionSpec: '11.x'
  44. - script: yarn install
  45. displayName: install
  46. - script: npm run lint
  47. displayName: lint
  48. - script: npm run test:all
  49. env:
  50. PROGRESS: none
  51. UMI_UI: none
  52. displayName: test
  53. - script: npm run build
  54. env:
  55. PROGRESS: none
  56. displayName: build
  57. - job: MacOS
  58. pool:
  59. vmImage: 'macOS-10.13'
  60. steps:
  61. - task: NodeTool@0
  62. inputs:
  63. versionSpec: '11.x'
  64. - script: yarn install
  65. displayName: install
  66. - script: npm run lint
  67. displayName: lint
  68. - script: npm run
  69. env:
  70. PROGRESS: none
  71. UMI_UI: none
  72. displayName: build