-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving OneBranch test to parallel build. (#4774)
* Adding OneBranch Test Updates * Updating OneBranch CI build * Moving tests to different pool * Updates * Use Java 11 * Updating Android install * enabling OneBranch Signing * Reactor and Clean up --------- Co-authored-by: trwalke <trwalke@microsoft.com>
- Loading branch information
Showing
6 changed files
with
77 additions
and
129 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
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,54 @@ | ||
# template-OneBranch-Tests-libsandsamples.yaml | ||
# Performs Nuget Restore and Build of LibsAndSamples.sln based on BuildPlatform and BuildConfiguration | ||
|
||
parameters: | ||
BuildPlatform: 'any cpu' | ||
BuildConfiguration: 'release' | ||
MsalClientSemVer: '4.0.0-devopsbuild' | ||
MsalSourceDir: '' #Default MSAL Location | ||
|
||
steps: | ||
- task: CmdLine@2 | ||
displayName: 'Clear local NuGet cache' | ||
inputs: | ||
script: 'nuget locals all -clear' | ||
|
||
- task: VSBuild@1 | ||
displayName: 'NuGet restore ${{ parameters.Solution }}' | ||
inputs: | ||
solution: ${{ parameters.Solution }} | ||
msbuildArgs: '/t:restore' | ||
platform: ${{ parameters.BuildPlatform }} | ||
configuration: ${{ parameters.BuildConfiguration }} | ||
|
||
- task: JavaToolInstaller@0 | ||
displayName: 'Use Java 11' | ||
inputs: | ||
versionSpec: 11 | ||
jdkArchitectureOption: x64 | ||
jdkSourceOption: PreInstalled | ||
|
||
- task: VSBuild@1 | ||
displayName: 'Build solution ${{ parameters.Solution }}' | ||
inputs: | ||
solution: ${{ parameters.Solution }} | ||
msbuildArgs: '/p:RunCodeAnalysis=false /p:MsalClientSemVer=${{ parameters.MsalClientSemVer }} /p:SourceLinkCreate=true /p:ContinousIntegrationBuild=true' | ||
platform: ${{ parameters.BuildPlatform }} | ||
configuration: ${{ parameters.BuildConfiguration }} | ||
|
||
# Run All Desktop Tests | ||
- template: template-run-all-tests.yaml | ||
parameters: | ||
BuildConfiguration: '$(BuildConfiguration)' | ||
|
||
- task: VSTest@2 | ||
displayName: 'Run cache compat tests' | ||
condition: and(succeeded(), eq(variables['RunTests'], 'true')) | ||
inputs: | ||
testSelector: 'testAssemblies' | ||
testAssemblyVer2: '**\CacheCompat\CommonCache.Test.Unit\bin\**\CommonCache.Test.Unit.dll' | ||
searchFolder: '$(System.DefaultWorkingDirectory)' | ||
codeCoverageEnabled: true | ||
failOnMinTestsNotRun: true | ||
minimumExpectedTests: '1' | ||
runInParallel: true |
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.