forked from microsoft/mu_basecore
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines-pr-gate.yml
66 lines (57 loc) · 1.83 KB
/
azure-pipelines-pr-gate.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
#Use matrix to speed up the build process
strategy:
matrix:
TARGET_MDE_CPU:
Build.Pkgs: 'MdePkg UefiCpuPkg'
TARGET_MDEMODULE:
Build.Pkgs: 'MdeModulePkg'
TARGET_OTHER:
Build.Pkgs: 'MsUnitTestPkg NetworkPkg PcAtChipsetPkg'
TARGET_SECURITY:
Build.Pkgs: 'SecurityPkg'
workspace:
clean: all
steps:
- checkout: self
clean: true
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7.x'
architecture: 'x64'
- script: python -m pip install --upgrade pip
displayName: 'Install/Upgrade pip'
- script: pip install -r requirements.txt --upgrade
displayName: 'Install/Upgrade mu_build'
#Build repo
- task: CmdLine@1
displayName: Build and Test $(Build.Pkgs)
inputs:
filename: mu_build
arguments: -c ci.mu.yaml --force-git -p $(Build.Pkgs) # Optional
# Publish Test Results to Azure Pipelines/TFS
- task: PublishTestResults@2
displayName: 'Publish junit test results'
continueOnError: true
condition: succeededOrFailed()
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit
testResultsFiles: 'Build/BuildLogs/TestSuites.xml'
#searchFolder: '$(System.DefaultWorkingDirectory)' # Optional
mergeTestResults: true # Optional
#testRunTitle: # Optional
#buildPlatform: # Optional
#buildConfiguration: # Optional
publishRunAttachments: true # Optional
# Publish Build Artifacts
# Publish build artifacts to Azure Artifacts/TFS or a file share
- task: PublishBuildArtifacts@1
displayName: 'Publish build logs'
continueOnError: true
condition: succeededOrFailed()
inputs:
pathtoPublish: 'Build/BuildLogs'
artifactName: 'Build Logs $(Build.Pkgs)'
#publishLocation: 'Container' # Options: container, filePath
#targetPath: # Required when publishLocation == FilePath
#parallel: false # Optional
#parallelCount: # Optional