forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.vrt-baseline.yml
49 lines (39 loc) · 1.28 KB
/
azure-pipelines.vrt-baseline.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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
batch: true
branches:
include:
- master
variables:
skipComponentGovernanceDetection: true
pool: '1ES-Host-Ubuntu'
jobs:
- job: VRToolUpdateBaseline
workspace:
clean: all
steps:
- template: .devops/templates/tools.yml
- task: Bash@3
inputs:
filePath: yarn-ci.sh
displayName: yarn (install packages)
- script: |
yarn workspace @fluentui/vr-tests-react-components screener:build
displayName: Build VR tests components package
- script: |
yarn lage test:component --verbose
displayName: 'Run VR tests'
- script: |
mkdir -p screenshots
cp -rf apps/vr-tests-react-components/dist/screenshots/*.png screenshots/
displayName: Collate Artifacts
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'screenshots'
ArtifactName: 'vrscreenshot'
publishLocation: 'Container'
- bash: node packages/screenshotdiff/dist/index.js release --buildId $(Build.BuildId)
displayName: 'Run Screenshotdiff update baseline'