forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.bundlesize.yml
59 lines (49 loc) · 1.97 KB
/
azure-pipelines.bundlesize.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
jobs:
- job: build
pool:
name: Hosted VS2017
demands: npm
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: yarn
displayName: yarn
- script: yarn buildto test-bundles -- --min
displayName: yarn build to test-bundles, with no tests or webpack
- script: yarn workspace test-bundles build
displayName: yarn build test-bundles
- script: yarn workspace office-ui-fabric-react just webpack
displayName: yarn bundle OUFR
- script: yarn bundlesizecollect
displayName: 'Collate Bundle Size Information'
- task: PublishBuildArtifacts@1
displayName: 'Publish Bundle Size information to Azure Dev Ops Artifacts'
inputs:
PathtoPublish: 'apps/test-bundles/dist/bundlesizes.json'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact ActivityItem stats.json file for comparing performance'
inputs:
PathtoPublish: 'apps/test-bundles/dist/office-ui-fabric-react-ActivityItem.stats.json'
ArtifactName: activityitemstatsdrop
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact dist folder upon build for debug'
inputs:
PathtoPublish: 'apps/test-bundles/dist'
ArtifactName: distdrop
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact office-ui-fabric-react.js from dist folder'
inputs:
PathtoPublish: 'packages/office-ui-fabric-react/dist/office-ui-fabric-react.js'
ArtifactName: oufrdrop
- job: lightrail
pool: server
dependsOn: build
steps:
- task: odefun.odsp-lightrail-tasks-partner.odsp-lightrail-tasks-SizeAuditorWorker.SizeAuditorWorker@0
displayName: 'Size Auditor Check on LightRail'
inputs:
connectedServiceName: lowimpact
sourceVersionMessage: '$(Build.SourceVersionMessage)'
sizeTolerance: 1024