summaryrefslogtreecommitdiff
path: root/tests/helixpublishwitharcade.proj
diff options
context:
space:
mode:
authorEgor Chesakov <Egor.Chesakov@microsoft.com>2018-12-06 10:22:50 -0800
committerGitHub <noreply@github.com>2018-12-06 10:22:50 -0800
commit2161d9d1789d28b1e56f4edff47572b12585a680 (patch)
tree4264bfdc618cb77b22cd575ee419c348cecd2168 /tests/helixpublishwitharcade.proj
parent5955967d808d1d88ef927235276d3ca82b5d9363 (diff)
downloadcoreclr-2161d9d1789d28b1e56f4edff47572b12585a680.tar.gz
coreclr-2161d9d1789d28b1e56f4edff47572b12585a680.tar.bz2
coreclr-2161d9d1789d28b1e56f4edff47572b12585a680.zip
Run MSBuild in parallel when submitting jobs to Helix (#21390)
Diffstat (limited to 'tests/helixpublishwitharcade.proj')
-rw-r--r--tests/helixpublishwitharcade.proj21
1 files changed, 9 insertions, 12 deletions
diff --git a/tests/helixpublishwitharcade.proj b/tests/helixpublishwitharcade.proj
index 38fb8d2589..50d7818f17 100644
--- a/tests/helixpublishwitharcade.proj
+++ b/tests/helixpublishwitharcade.proj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.DotNet.Helix.Sdk">
+<Project Sdk="Microsoft.DotNet.Helix.Sdk" DefaultTargets="SubmitTestsToHelix">
<!-- This project uses the helix SDK ,documented at
https://github.com/dotnet/arcade/tree/master/src/Microsoft.DotNet.Helix/Sdk,
@@ -51,20 +51,17 @@
<Target Name="SubmitTestsToHelix">
<ItemGroup>
<Scenarios Include="$(Scenarios)" />
+ <ProjectsToBuild Include="$(MSBuildProjectFile)">
+ <Properties>Scenario=%(Scenarios.Identity)</Properties>
+ </ProjectsToBuild>
</ItemGroup>
- <!-- If no scenario was specified, just run the normal test
- scenario -->
- <MSBuild Projects="$(MSBuildProjectFile)" Targets="Test"
- Condition=" '@(Scenarios->Count())' == '0' " />
-
- <!-- If scenarios were specified, submit jobs for each
- scenario. -->
- <MSBuild Projects="$(MSBuildProjectFile)" Targets="Test"
- Properties="Scenario=%(Scenarios.Identity)"
- BuildInParallel="true"
- Condition=" '@(Scenarios->Count())' != '0' " />
+ <PropertyGroup>
+ <BuildInParallel>false</BuildInParallel>
+ <BuildInParallel Condition=" '@(ProjectsToBuild->Count())' > '1' ">true</BuildInParallel>
+ </PropertyGroup>
+ <MSBuild Projects="@(ProjectsToBuild)" Targets="Test" BuildInParallel="$(BuildInParallel)" StopOnFirstFailure="false" UnloadProjectsOnCompletion="true" />
</Target>
<Target Name="BuildHelixWorkItem"