forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.vrt-pr.yml
46 lines (36 loc) · 1.29 KB
/
azure-pipelines.vrt-pr.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
pr:
- master
# There's a separate pipeline for CI which also uses this file, but with a trigger override in the UI
# https://dev.azure.com/uifabric/fabricpublic/_apps/hub/ms.vss-ciworkflow.build-ci-hub?_a=edit-build-definition&id=164&view=Tab_Triggers
trigger: none
variables:
- ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/heads/')) }}:
- name: sinceArg
value: --since $(targetBranch)
- template: .devops/templates/variables.yml
pool: '1ES-Host-Ubuntu'
jobs:
- job: TestVRTool
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'