From 8f8d9f9d4e9616abd9080dce096739069673203e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 1 Feb 2019 15:39:13 +0800 Subject: [PATCH] perf: add checkout config in azure (#3498) --- azure-pipelines.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 51f38ac9..9a2c15c6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,12 +5,10 @@ name: ant design pro trigger: - - master - -resources: - repositories: - - repository: self - fetchDepth: 1 + batch: true + branches: + exclude: + - gh-pages jobs: - job: lintAndBuild @@ -19,6 +17,9 @@ jobs: vmImage: 'Ubuntu-16.04' steps: + - checkout: self + fetchDepth: 1 + clean: false - script: yarn install displayName: install - script: npm run lint @@ -35,6 +36,9 @@ jobs: options: '-u root' steps: + - checkout: self + fetchDepth: 1 + clean: false - script: yarn install displayName: install - script: npm run test:all @@ -44,6 +48,9 @@ jobs: pool: vmImage: 'vs2017-win2016' steps: + - checkout: self + fetchDepth: 1 + clean: false - task: NodeTool@0 inputs: versionSpec: '11.x' @@ -58,6 +65,9 @@ jobs: pool: vmImage: 'macOS-10.13' steps: + - checkout: self + fetchDepth: 1 + clean: false - task: NodeTool@0 inputs: versionSpec: '11.x' -- GitLab