diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 05f40567f4..28457079d5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,6 +7,11 @@ name: ant design pro trigger: - master +resources: + repositories: + - repository: self + fetchDepth: 1 + jobs: - job: lintAndBuild @@ -14,15 +19,11 @@ jobs: vmImage: 'Ubuntu-16.04' steps: - - checkout: self - clean: false - script: yarn install displayName: install - script: npm run lint displayName: lint - script: npm run build - env: - PROGRESS: none displayName: build - job: test @@ -34,23 +35,15 @@ jobs: options: '-u root' steps: - - checkout: self - fetchDepth: 1 - clean: false - script: yarn install displayName: install - script: npm run test:all - env: - PROGRESS: none displayName: test - job: Windows pool: vmImage: 'vs2017-win2016' steps: - - checkout: self - fetchDepth: 1 - clean: false - task: NodeTool@0 inputs: versionSpec: '11.x' @@ -59,17 +52,12 @@ jobs: - script: npm run lint displayName: lint - script: npm run build - env: - PROGRESS: none displayName: build - job: MacOS pool: vmImage: 'macOS-10.13' steps: - - checkout: self - fetchDepth: 1 - clean: false - task: NodeTool@0 inputs: versionSpec: '11.x' @@ -77,7 +65,5 @@ jobs: displayName: install - script: npm run lint displayName: lint - - script: npm run - env: - PROGRESS: none + - script: npm run build displayName: build