azure-pipelines.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 test:all
  48. env:
  49. PROGRESS: none
  50. displayName: test
  51. - script: npm run build
  52. env:
  53. PROGRESS: none
  54. displayName: build
  55. - job: MacOS
  56. pool:
  57. vmImage: 'macOS-10.13'
  58. steps:
  59. - task: NodeTool@0
  60. inputs:
  61. versionSpec: '11.x'
  62. - script: yarn install
  63. displayName: install
  64. - script: npm run lint
  65. displayName: lint
  66. - script: npm run
  67. env:
  68. PROGRESS: none
  69. displayName: build