陈帅 7 gadi atpakaļ
vecāks
revīzija
1e996d8677
1 mainītis faili ar 6 papildinājumiem un 20 dzēšanām
  1. 6 20
      azure-pipelines.yml

+ 6 - 20
azure-pipelines.yml

@@ -7,6 +7,11 @@ name: ant design pro
 trigger:
 trigger:
   - master
   - master
 
 
+resources:
+  repositories:
+    - repository: self
+      fetchDepth: 1
+
 jobs:
 jobs:
   - job: lintAndBuild
   - job: lintAndBuild
 
 
@@ -14,15 +19,11 @@ jobs:
       vmImage: 'Ubuntu-16.04'
       vmImage: 'Ubuntu-16.04'
 
 
     steps:
     steps:
-      - checkout: self
-        clean: false
       - script: yarn install
       - script: yarn install
         displayName: install
         displayName: install
       - script: npm run lint
       - script: npm run lint
         displayName: lint
         displayName: lint
       - script: npm run build
       - script: npm run build
-        env:
-          PROGRESS: none
         displayName: build
         displayName: build
 
 
   - job: test
   - job: test
@@ -34,23 +35,15 @@ 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
-        env:
-          PROGRESS: none
         displayName: test
         displayName: test
 
 
   - job: Windows
   - job: Windows
     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'
@@ -59,17 +52,12 @@ jobs:
       - script: npm run lint
       - script: npm run lint
         displayName: lint
         displayName: lint
       - script: npm run build
       - script: npm run build
-        env:
-          PROGRESS: none
         displayName: build
         displayName: build
 
 
   - job: MacOS
   - job: MacOS
     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'
@@ -77,7 +65,5 @@ jobs:
         displayName: install
         displayName: install
       - script: npm run lint
       - script: npm run lint
         displayName: lint
         displayName: lint
-      - script: npm run
-        env:
-          PROGRESS: none
+      - script: npm run build
         displayName: build
         displayName: build