1 Star 0 Fork 0

Mouri_Naruto / mu_basecore

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
azure-pipelines-pr-gate.yml 2.77 KB
Copy Edit Web IDE Raw Blame History
#Use matrix to speed up the build process
strategy:
matrix:
TARGET_MDE_CPU:
Build.Pkgs: 'MdePkg,UefiCpuPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'
TARGET_MDEMODULE_DEBUG:
Build.Pkgs: 'MdeModulePkg'
Build.Targets: 'DEBUG,NO-TARGET'
TARGET_MDEMODULE_RELEASE:
Build.Pkgs: 'MdeModulePkg'
Build.Targets: 'RELEASE'
TARGET_OTHER:
Build.Pkgs: 'MsUnitTestPkg,NetworkPkg,PcAtChipsetPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'
TARGET_SECURITY:
Build.Pkgs: 'SecurityPkg'
Build.Targets: 'DEBUG,RELEASE,NO-TARGET'
workspace:
clean: all
steps:
- checkout: self
clean: true
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7.x'
architecture: 'x64'
- script: pip install -r requirements.txt --upgrade
displayName: 'Install/Upgrade pip modules'
#Build repo
- task: CmdLine@1
displayName: Setup $(Build.Pkgs)
inputs:
filename: stuart_ci_setup
arguments: -c CISettings.py -p $(Build.Pkgs) --force-git -t $(Build.Targets) TOOL_CHAIN_TAG=VS2017
- task: CmdLine@1
displayName: Update $(Build.Pkgs)
inputs:
filename: stuart_update
arguments: -c CISettings.py -p $(Build.Pkgs) -t $(Build.Targets) TOOL_CHAIN_TAG=VS2017
- task: CmdLine@1
displayName: Build and Test $(Build.Pkgs)
inputs:
filename: stuart_ci_build
arguments: -c CISettings.py -p $(Build.Pkgs) -t $(Build.Targets) TOOL_CHAIN_TAG=VS2017
# 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/TestSuites.xml'
testRunTitle: "$(Build.Pkgs)"
#searchFolder: '$(System.DefaultWorkingDirectory)' # Optional
mergeTestResults: true # Optional
#buildPlatform: # Optional
#buildConfiguration: # Optional
publishRunAttachments: true # Optional
# Copy the build logs to the artifact staging directory
- task: CopyFiles@2
displayName: "Copy build logs"
continueOnError: true
condition: succeededOrFailed()
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)'
contents: |
Build\**\BUILDLOG_*.txt
Build\**\BUILDLOG_*.md
Build\**\CI_*.txt
Build\**\CI_*.md
Build\**\CISETUP.txt
Build\**\SETUPLOG.txt
Build\**\UPDATE_LOG.txt
Build\**\TestSuites.xml
Build\**\BUILD_TOOLS_REPORT.html
Build\**\OVERRIDELOG.TXT
flattenFolders: true
# Publish build artifacts to Azure Artifacts/TFS or a file share
- task: PublishBuildArtifacts@1
continueOnError: true
condition: succeededOrFailed()
displayName: "Publish build logs"
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'Build Logs $(Build.Pkgs)'

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/Mouri_Naruto/mu_basecore.git
git@gitee.com:Mouri_Naruto/mu_basecore.git
Mouri_Naruto
mu_basecore
mu_basecore
dev/201908

Search

105716 1d94204e 1850385 105716 2d26be5c 1850385