Gather additional smoke test prereqs (#13233)
This commit is contained in:
parent
e63e925b57
commit
f6763d6f6d
2 changed files with 21 additions and 3 deletions
|
@ -106,9 +106,23 @@
|
||||||
" />
|
" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="CreateSmokeTestPrereqs"
|
<Target Name="CreateSmokeTestPrereqsTarball"
|
||||||
AfterTargets="RunSmokeTest"
|
AfterTargets="RunSmokeTest"
|
||||||
Condition="'$(SkipSmokeTestPrereqsTarballCreation)' != 'true'" >
|
Condition="'$(SkipSmokeTestPrereqsTarballCreation)' != 'true'"
|
||||||
|
DependsOnTargets="
|
||||||
|
CheckIfCreateSmokeTestPrereqsExistToPack;
|
||||||
|
CreateCreateSmokeTestPrereqsTarballIfPrereqsExist"/>
|
||||||
|
|
||||||
|
<Target Name="CheckIfCreateSmokeTestPrereqsExistToPack">
|
||||||
|
<ItemGroup>
|
||||||
|
<Prereqs Include="test/Microsoft.DotNet.SourceBuild.SmokeTests/bin/$(Configuration)/net6.0/smoke-tests/prereq-packages/**" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Message Text="Found @(Prereqs->Count()) files in prereqs packages dir." Importance="High" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="CreateCreateSmokeTestPrereqsTarballIfPrereqsExist"
|
||||||
|
Condition="'@(Prereqs->Count())' != '0'">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<SmokeTestPrereqsTarballName>$(OutputPath)dotnet-smoke-test-prereqs.$(installerOutputPackageVersion).tar.gz</SmokeTestPrereqsTarballName>
|
<SmokeTestPrereqsTarballName>$(OutputPath)dotnet-smoke-test-prereqs.$(installerOutputPackageVersion).tar.gz</SmokeTestPrereqsTarballName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@ -116,7 +130,7 @@
|
||||||
<Exec Command="tar --numeric-owner -czf $(SmokeTestPrereqsTarballName) ."
|
<Exec Command="tar --numeric-owner -czf $(SmokeTestPrereqsTarballName) ."
|
||||||
WorkingDirectory="./test/Microsoft.DotNet.SourceBuild.SmokeTests/bin/$(Configuration)/net6.0/smoke-tests/prereq-packages/"/>
|
WorkingDirectory="./test/Microsoft.DotNet.SourceBuild.SmokeTests/bin/$(Configuration)/net6.0/smoke-tests/prereq-packages/"/>
|
||||||
|
|
||||||
<Message Importance="High" Text="Packaged smoke-test prereqs to $(SmokeTestPrereqsTarballName)" />
|
<Message Importance="High" Text="Packaged smoke-test prereqs in '$(SmokeTestPrereqsTarballName)'" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<UsingTask AssemblyFile="$(XPlatSourceBuildTasksAssembly)" TaskName="UploadToAzure" />
|
<UsingTask AssemblyFile="$(XPlatSourceBuildTasksAssembly)" TaskName="UploadToAzure" />
|
||||||
|
|
|
@ -251,12 +251,14 @@ function doCommand() {
|
||||||
"${dotnetCmd}" publish --self-contained false /bl:"${binlogPrefix}publish-fx-dep.binlog"
|
"${dotnetCmd}" publish --self-contained false /bl:"${binlogPrefix}publish-fx-dep.binlog"
|
||||||
"${dotnetCmd}" publish --self-contained true -r "$targetRid" /bl:"${binlogPrefix}publish-self-contained-${targetRid}.binlog"
|
"${dotnetCmd}" publish --self-contained true -r "$targetRid" /bl:"${binlogPrefix}publish-self-contained-${targetRid}.binlog"
|
||||||
"${dotnetCmd}" publish --self-contained true -r linux-x64 /bl:"${binlogPrefix}publish-self-contained-portable.binlog"
|
"${dotnetCmd}" publish --self-contained true -r linux-x64 /bl:"${binlogPrefix}publish-self-contained-portable.binlog"
|
||||||
|
"${dotnetCmd}" publish --self-contained true -r linux-x64 /bl:"${binlogPrefix}publish-self-contained-R2R-portable.binlog" /p:PublishTrimmed=true /p:PublishReadyToRun=true
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
runPublishScenarios() {
|
runPublishScenarios() {
|
||||||
"${dotnetCmd}" publish --self-contained false /bl:"${binlogPrefix}publish-fx-dep.binlog"
|
"${dotnetCmd}" publish --self-contained false /bl:"${binlogPrefix}publish-fx-dep.binlog"
|
||||||
"${dotnetCmd}" publish --self-contained true -r "$targetRid" /bl:"${binlogPrefix}publish-self-contained-${targetRid}.binlog"
|
"${dotnetCmd}" publish --self-contained true -r "$targetRid" /bl:"${binlogPrefix}publish-self-contained-${targetRid}.binlog"
|
||||||
"${dotnetCmd}" publish --self-contained true -r linux-x64 /bl:"${binlogPrefix}publish-self-contained-portable.binlog"
|
"${dotnetCmd}" publish --self-contained true -r linux-x64 /bl:"${binlogPrefix}publish-self-contained-portable.binlog"
|
||||||
|
"${dotnetCmd}" publish --self-contained true -r linux-x64 /bl:"${binlogPrefix}publish-self-contained-R2R-portable.binlog" /p:PublishTrimmed=true /p:PublishReadyToRun=true
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
if [ "$projectOutput" == "true" ]; then
|
if [ "$projectOutput" == "true" ]; then
|
||||||
|
@ -351,6 +353,8 @@ function runWebTests() {
|
||||||
doCommand C# razor "$@" new restore build run multi-rid-publish
|
doCommand C# razor "$@" new restore build run multi-rid-publish
|
||||||
doCommand C# blazorwasm "$@" new restore build run publish
|
doCommand C# blazorwasm "$@" new restore build run publish
|
||||||
doCommand C# blazorserver "$@" new restore build run publish
|
doCommand C# blazorserver "$@" new restore build run publish
|
||||||
|
doCommand C# worker new restore
|
||||||
|
doCommand C# angular new restore
|
||||||
|
|
||||||
doCommand F# web "$@" new restore build run multi-rid-publish
|
doCommand F# web "$@" new restore build run multi-rid-publish
|
||||||
doCommand F# mvc "$@" new restore build run multi-rid-publish
|
doCommand F# mvc "$@" new restore build run multi-rid-publish
|
||||||
|
|
Loading…
Reference in a new issue