azure-pipelines.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. displayName: test
  36. - job: Windows
  37. pool:
  38. vmImage: 'vs2017-win2016'
  39. steps:
  40. - task: NodeTool@0
  41. inputs:
  42. versionSpec: '11.x'
  43. - script: yarn install
  44. displayName: install
  45. - script: npm run lint
  46. displayName: lint
  47. - script: npm run build
  48. env:
  49. PROGRESS: none
  50. displayName: build
  51. - job: MacOS
  52. pool:
  53. vmImage: 'macOS-10.13'
  54. steps:
  55. - task: NodeTool@0
  56. inputs:
  57. versionSpec: '11.x'
  58. - script: yarn install
  59. displayName: install
  60. - script: npm run lint
  61. displayName: lint
  62. - script: npm run
  63. env:
  64. PROGRESS: none
  65. displayName: build