-
Notifications
You must be signed in to change notification settings - Fork 676
/
azure-pipelines-integration-tests.yml
75 lines (61 loc) · 2.81 KB
/
azure-pipelines-integration-tests.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
# Don't trigger ci or pr builds
trigger: none
pr: none
# For more info about how this resources section works, see https://docs.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops&tabs=schema
resources:
pipelines:
# All PTVS build artifacts come from this pipeline and are referenced like this:
# $(Pipeline.Workspace)\ComponentBuildUnderTest\<artifactName>\<filePath>
- pipeline: ComponentBuildUnderTest
source: PTVS-Build-Dev17
branch: main # This is only used for manual/scheduled runs of this pipeline
trigger:
branches:
include:
- main
- release/*
- pipeline: DartLab
project: DevDiv
source: DartLab
branch: main
repositories:
- repository: DartLabTemplates
type: git
name: DartLab.Templates
ref: refs/heads/main
stages:
- template: stages/visual-studio/single-runsettings.yml@DartLabTemplates
parameters:
displayName: Integration Tests
variables:
- name: VisualStudio.InstallationUnderTest.BootstrapperBranch
value: main
testLabPoolName: Azure-and-Web
testMachineTotalCount: 1
# This assumes the PTVS build has published a build artifact called "RunSettings" that contains the default.runsettings file
runSettingsURI: $(Pipeline.Workspace)\ComponentBuildUnderTest\RunSettings\default.runsettings
visualStudioBootstrapperURI: $(VisualStudio.InstallationUnderTest.BootstrapperURL)
visualStudioSigning: Test
# These steps run on the machine that is creating the test machine configuration, which isn't the same
# as the machine running the actual tests
preTestMachineConfigurationStepList:
- download: ComponentBuildUnderTest
artifact: MicroBuildOutputs
patterns: '**\BootstrapperInfo.json'
displayName: Download Bootstrapper Information
- download: ComponentBuildUnderTest
artifact: RunSettings
patterns: '**\default.runsettings'
displayName: Download RunSettings
- task: PowerShell@2
displayName: Set 'VisualStudio.InstallationUnderTest.BootstrapperURL'
inputs:
filePath: $(DartLab.Path)\Scripts\VisualStudio\Bootstrapper\Get-BootstrapperURL.ps1
# This assumes the PTVS build has published a build artifact called "MicroBuildOutputs" that contains the generated BootstrapperInfo.json
arguments: -BootstrapperInfoJsonURI '$(Pipeline.Workspace)\ComponentBuildUnderTest\MicroBuildOutputs\BootstrapperInfo.json' -VSBranch '$(VisualStudio.InstallationUnderTest.BootstrapperBranch)' -OutVariableName 'VisualStudio.InstallationUnderTest.BootstrapperURL'
# These steps run on the machine that is running the tests
preDeployAndRunTestsStepList:
- download: ComponentBuildUnderTest
artifact: RunSettings
patterns: '**\default.runsettings'
displayName: Download RunSettings