forked from tianocore/edk2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dun Tan <[email protected]> Signed-off-by: Dun Tan <[email protected]>
- Loading branch information
Showing
2 changed files
with
174 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## @file | ||
# File templates/basetools-build-job.yml | ||
# | ||
# template file to build basetools | ||
# | ||
# Copyright (c) Microsoft Corporation. | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
## | ||
parameters: | ||
build_UnitTest_flag: '' | ||
|
||
# Set default | ||
- bash: echo "##vso[task.setvariable variable=UT_Count]${{ 0 }}" | ||
# Pr eval | ||
- task: CmdLine@1 | ||
inputs: | ||
filename: stuart_pr_eval | ||
arguments: -c OvmfPkg/PlatformCI/UnitTestBuild.py --output-count-format-string "##vso[task.setvariable variable=UT_Count;isOutpout=true]{pkgcount}" | ||
condition: and(eq(variables['Build.Reason'], 'PullRequest'), in(parameters.build_UnitTest_flag, 'true')) | ||
# Build | ||
- task: CmdLine@1 | ||
inputs: | ||
filename: stuart_build | ||
arguments: -c OvmfPkg/PlatformCI/UnitTestBuild.py | ||
condition: and(gt(variables.UT_Count, 0), succeeded()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters