Просмотр исходного кода

perf: add checkout config in azure (#3498)

陈帅 7 лет назад
Родитель
Сommit
8f8d9f9d4e
1 измененных файлов с 16 добавлено и 6 удалено
  1. 16 6
      azure-pipelines.yml

+ 16 - 6
azure-pipelines.yml

@@ -5,12 +5,10 @@
 name: ant design pro
 name: ant design pro
 
 
 trigger:
 trigger:
-  - master
-
-resources:
-  repositories:
-  - repository: self
-    fetchDepth: 1
+  batch: true
+  branches:
+    exclude:
+      - gh-pages
 
 
 jobs:
 jobs:
   - job: lintAndBuild
   - job: lintAndBuild
@@ -19,6 +17,9 @@ jobs:
       vmImage: 'Ubuntu-16.04'
       vmImage: 'Ubuntu-16.04'
 
 
     steps:
     steps:
+      - checkout: self
+        fetchDepth: 1
+        clean: false
       - script: yarn install
       - script: yarn install
         displayName: install
         displayName: install
       - script: npm run lint
       - script: npm run lint
@@ -35,6 +36,9 @@ jobs:
       options: '-u root'
       options: '-u root'
 
 
     steps:
     steps:
+      - checkout: self
+        fetchDepth: 1
+        clean: false
       - script: yarn install
       - script: yarn install
         displayName: install
         displayName: install
       - script: npm run test:all
       - script: npm run test:all
@@ -44,6 +48,9 @@ jobs:
     pool:
     pool:
       vmImage: 'vs2017-win2016'
       vmImage: 'vs2017-win2016'
     steps:
     steps:
+      - checkout: self
+        fetchDepth: 1
+        clean: false
       - task: NodeTool@0
       - task: NodeTool@0
         inputs:
         inputs:
           versionSpec: '11.x'
           versionSpec: '11.x'
@@ -58,6 +65,9 @@ jobs:
     pool:
     pool:
       vmImage: 'macOS-10.13'
       vmImage: 'macOS-10.13'
     steps:
     steps:
+      - checkout: self
+        fetchDepth: 1
+        clean: false
       - task: NodeTool@0
       - task: NodeTool@0
         inputs:
         inputs:
           versionSpec: '11.x'
           versionSpec: '11.x'