forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
89 lines (74 loc) · 2.4 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
pr:
- master
trigger:
- master
variables:
- group: fabric-variables
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
yarn
displayName: yarn
- script: |
npm run checkchange
displayName: check change
- script: |
npm run buildci
displayName: build ci
- task: AzureUpload@1
displayName: Upload PR deploy site
inputs:
SourcePath: 'apps/pr-deploy-site/dist'
azureSubscription: 'UI Fabric (bac044cf-49e1-4843-8dda-1ce9662606c8)'
storage: fabricweb
ContainerName: '$web'
BlobPrefix: 'pr-deploy-site/$(Build.SourceBranch)'
- script: |
npm run just perf-test
workingDirectory: apps/perf-test
displayName: Perf Test
- task: AzureUpload@1
displayName: Upload Perf Test Result to PR deploy site
inputs:
SourcePath: 'apps/perf-test/dist'
azureSubscription: 'UI Fabric (bac044cf-49e1-4843-8dda-1ce9662606c8)'
storage: fabricweb
ContainerName: '$web'
BlobPrefix: 'pr-deploy-site/$(Build.SourceBranch)/perf-test'
- task: GithubPRComment@0
displayName: 'Post Perf Results to Github Pull Request'
inputs:
githubOwner: OfficeDev
githubRepo: 'office-ui-fabric-react'
blobFilePath: '$(Build.SourcesDirectory)/$(PerfCommentFilePath)'
status: '$(PerfCommentStatus)'
uniqueId: 'perfComment9423'
- task: GithubPRStatus@0
displayName: 'Update Github Pull Request Status'
inputs:
githubOwner: OfficeDev
githubRepo: 'office-ui-fabric-react'
githubContext: 'Pull Request Deployed Site'
githubDescription: 'Click "Details" to go to the Deployed Site'
githubTargetLink: 'http://fabricweb.z5.web.core.windows.net/pr-deploy-site/$(Build.SourceBranch)/'
# a11y-tests disabled until occasional local and CI timeout issue can be resolved.
#- task: PublishBuildArtifacts@1
# inputs:
# pathtoPublish: './apps/a11y-tests/dist/reports'
# artifactName: 'CodeAnalysisLogs'
# displayName: publish sarif a11y reports
- script: |
git config --global user.email "[email protected]"
git config --global user.name "Fabric Tactical"
npm run vrtest -- --debug
displayName: run VR Test
env:
SCREENER_API_KEY: $(screener.key)
- script: |
npm run check-for-changed-files
displayName: check for change file