Skip to content

Commit

Permalink
perf: add checkout config in azure (#3498)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 authored Feb 1, 2019
1 parent 54678ba commit 8f8d9f9
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -44,6 +48,9 @@ jobs:
pool:
vmImage: 'vs2017-win2016'
steps:
- checkout: self
fetchDepth: 1
clean: false
- task: NodeTool@0
inputs:
versionSpec: '11.x'
Expand All @@ -58,6 +65,9 @@ jobs:
pool:
vmImage: 'macOS-10.13'
steps:
- checkout: self
fetchDepth: 1
clean: false
- task: NodeTool@0
inputs:
versionSpec: '11.x'
Expand Down

0 comments on commit 8f8d9f9

Please sign in to comment.