forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.perf-test.yml
95 lines (78 loc) · 2.6 KB
/
azure-pipelines.perf-test.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
90
91
92
93
94
95
pr:
- master
- website-content
trigger: none
variables:
- group: fabric-variables
- template: .devops/templates/variables.yml
pool: 'Self Host Ubuntu'
workspace:
clean: all
steps:
- template: .devops/templates/tools.yml
- task: Bash@3
inputs:
filePath: yarn-ci.sh
displayName: yarn
# @fluentui/perf-test needs build and bundle steps
- script: |
yarn lage build --to @fluentui/perf-test --to perf-test --verbose --no-cache
displayName: build to perf-test
# Fluent perf-test must run before Fabric perf-test until they are consolidated.
# @fluentui/perf-test Baseline
- script: |
yarn perf:test:base
condition: not(variables.isPR)
workingDirectory: packages/fluentui/perf-test
displayName: Perf Test Base (Fluent)
# @fluentui/perf-test PR
- script: |
yarn perf:test
condition: variables.isPR
workingDirectory: packages/fluentui/perf-test
displayName: Perf Test (Fluent)
# Fabric: perf-test will build, bundle, and run-perftest
- script: |
yarn just perf-test
workingDirectory: apps/perf-test
displayName: Perf Test
- task: AzureUpload@2
displayName: Upload Perf Test Result to PR deploy site (Fluent N*)
inputs:
SourcePath: 'packages/fluentui/perf-test/dist'
azureSubscription: $(azureSubscription)
storage: $(azureStorage)
ContainerName: '$web'
BlobPrefix: '$(deployBasePath)/perf-test-northstar'
- task: AzureUpload@2
displayName: Upload Perf Test Result to PR deploy site (Fluent)
inputs:
SourcePath: 'apps/perf-test/dist'
azureSubscription: $(azureSubscription)
storage: $(azureStorage)
ContainerName: '$web'
BlobPrefix: '$(deployBasePath)/perf-test'
- task: GithubPRComment@0
displayName: 'Post Perf Results to Github Pull Request'
inputs:
githubOwner: microsoft
githubRepo: 'fluentui'
blobFilePath: '$(Build.SourcesDirectory)/$(PerfCommentFilePath)'
status: '$(PerfCommentStatus)'
uniqueId: 'perfComment9423'
- script: |
yarn stats:build
condition: not(variables.isPR)
displayName: Bundle Statistics (master only)
- script: |
yarn perf
condition: not(variables.isPR)
displayName: Performance Tests (master only)
# HEADS UP: also see tag-version-prefix in fluentui-publish.js
- script: |
yarn stats:save --tag=`git tag --points-at HEAD | grep ^@fluentui/react-northstar_v | grep -o 'northstar_v.*'`
condition: not(variables.isPR)
displayName: Save Statistics to DB (master only)
env:
STATS_URI: $(STATS_URI)
- template: .devops/templates/cleanup.yml