forked from dotnet/diagnostics
-
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.
Use darc runtime subscription versions for testing
Update arcade to version 5.0.0-beta.19608.1 Replace install scripts with InstallRuntimes.proj (thanks to Juan). Add build.ps1 on Windows. Build-Native.cmd just builds the native bits now. Combine build.sh and build-native.sh scripts. Issue: dotnet#423 Issue: dotnet#480
- Loading branch information
Showing
89 changed files
with
4,973 additions
and
1,748 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@echo off | ||
call %~dp0eng\Build.cmd -restore -build -build-native %* | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\build.ps1""" -restore -build -native %*" | ||
exit /b %ErrorLevel% |
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 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@echo off | ||
call %~dp0eng\Build.cmd -restore %* | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\build.ps1""" -restore %*" | ||
exit /b %ErrorLevel% |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@echo off | ||
call %~dp0eng\Build.cmd -test %* | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\build.ps1""" -test %*" | ||
exit /b %ErrorLevel% |
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.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@echo off | ||
call %~dp0Build.cmd -restore -build -build-native -test -publish -ci %* | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0build.ps1""" -restore -build -native -test -publish -ci %*" | ||
exit /b %ErrorLevel% |
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,109 @@ | ||
<Project> | ||
<!-- | ||
$(BuildArch) - architecture to test (x64, x86, arm, arm64). Defaults to x64. | ||
$(DailyTest) - if true, only install/test the latest (master branch) runtime | ||
From Versions.props: | ||
$(MicrosoftNETCoreAppVersion) $(MicrosoftAspNetCoreAppRefVersion) - latest dotnet runtime/aspnetcore version to install/test | ||
$(MicrosoftNETCoreApp31Version) $(MicrosoftAspNetCoreApp31Version) - 3.1 version | ||
$(MicrosoftNETCoreApp30Version) $(MicrosoftAspNetCoreApp30Version) - 3.0 version | ||
$(MicrosoftNETCoreApp21Version) $(MicrosoftAspNetCoreApp21Version) - 2.1 version | ||
From Arcade: | ||
$(DotNetRoot) - the SDK/runtime installation root | ||
$(RepositoryEngineeringDir) - the "eng" directory | ||
$(VersionsPropsPath) - path of Versions.props | ||
--> | ||
|
||
<PropertyGroup> | ||
<DailyTest Condition="'$(DailyTest)' == ''">false</DailyTest> | ||
<BuildArch Condition="'$(BuildArch)' == ''">$(Platform)</BuildArch> | ||
<BuildArch Condition="'$(BuildArch)' == ''">x64</BuildArch> | ||
<CommonInstallArgs>-architecture $(BuildArch)</CommonInstallArgs> | ||
<TestConfigFileName Condition="'$(BuildArch)' != 'x86'">$(DotNetRoot)Debugger.Tests.Versions.txt</TestConfigFileName> | ||
<TestConfigFileName Condition="'$(BuildArch)' == 'x86'">$(DotNetRoot)x86\Debugger.Tests.Versions.txt</TestConfigFileName> | ||
</PropertyGroup> | ||
|
||
<Choose> | ||
<When Condition="$([MSBuild]::IsOsPlatform(Windows))"> | ||
<PropertyGroup> | ||
<PowershellWrapper>powershell -NonInteractive -ExecutionPolicy ByPass -NoProfile -command</PowershellWrapper> | ||
<DotnetInstallScriptCmd>'$(RepositoryEngineeringDir)common\dotnet-install.ps1'</DotnetInstallScriptCmd> | ||
</PropertyGroup> | ||
</When> | ||
<Otherwise> | ||
<PropertyGroup> | ||
<DotnetInstallScriptCmd>$(RepositoryEngineeringDir)common/dotnet-install.sh</DotnetInstallScriptCmd> | ||
</PropertyGroup> | ||
</Otherwise> | ||
</Choose> | ||
|
||
<ItemGroup> | ||
<!-- We always test on latest, so install that one even for scheduled builds --> | ||
<TestVersions Include="Latest" RuntimeVersion="$(MicrosoftNETCoreAppVersion)" AspNetVersion="$(MicrosoftAspNetCoreAppRefVersion)" Install="true" /> | ||
<TestVersions Include="31" RuntimeVersion="$(MicrosoftNETCoreApp31Version)" AspNetVersion="$(MicrosoftAspNetCoreApp31Version)" Install="!$(DailyTest)" /> | ||
<TestVersions Include="30" RuntimeVersion="$(MicrosoftNETCoreApp30Version)" AspNetVersion="$(MicrosoftAspNetCoreApp30Version)" Install="!$(DailyTest)" /> | ||
<TestVersions Include="21" RuntimeVersion="$(MicrosoftNETCoreApp21Version)" AspNetVersion="$(MicrosoftAspNetCoreApp21Version)" Install="!$(DailyTest)" /> | ||
</ItemGroup> | ||
|
||
<Target Name="InstallTestRuntimes" | ||
BeforeTargets="RunTests" | ||
DependsOnTargets="InstallRuntimesWindows;InstallRuntimesUnix;WriteTestVersionManifest" /> | ||
|
||
<Target Name="InstallRuntimesWindows" | ||
Condition="$([MSBuild]::IsOsPlatform(Windows))" | ||
Inputs="$(VersionsPropsPath)" Outputs="$(TestConfigFileName);$(DotNetRoot)\shared"> | ||
|
||
<!-- Install SDK for the x86 architecture --> | ||
<Exec Command="$(PowershellWrapper) "& { &$(DotnetInstallScriptCmd) $(CommonInstallArgs) -version $(NETCoreSDKVersion) -runtime '' }"" | ||
Condition="'$(BuildArch)' == 'x86'" /> | ||
|
||
<Exec Command="$(PowershellWrapper) "& { &$(DotnetInstallScriptCmd) $(CommonInstallArgs) -version %(TestVersions.RuntimeVersion) -runtime dotnet }"" | ||
Condition="%(TestVersions.Install)" /> | ||
|
||
<Exec Command="$(PowershellWrapper) "& { &$(DotnetInstallScriptCmd) $(CommonInstallArgs) -version %(TestVersions.AspNetVersion) -runtime aspnetcore }"" | ||
Condition="%(TestVersions.Install)" /> | ||
</Target> | ||
|
||
<Target Name="InstallRuntimesUnix" | ||
Condition="!$([MSBuild]::IsOsPlatform(Windows))" | ||
Inputs="$(VersionsPropsPath)" Outputs="$(TestConfigFileName);$(DotNetRoot)/shared"> | ||
|
||
<Exec Command="$(DotnetInstallScriptCmd) $(CommonInstallArgs) -version %(TestVersions.RuntimeVersion) -runtime dotnet" | ||
IgnoreStandardErrorWarningFormat="true" | ||
Condition="%(TestVersions.Install)" /> | ||
|
||
<Exec Command="$(DotnetInstallScriptCmd) $(CommonInstallArgs) -version %(TestVersions.AspNetVersion) -runtime aspnetcore" | ||
IgnoreStandardErrorWarningFormat="true" | ||
Condition="%(TestVersions.Install)" /> | ||
</Target> | ||
|
||
<Target Name="WriteTestVersionManifest" Inputs="$(VersionsPropsPath" Outputs="$(TestConfigFileName)"> | ||
<PropertyGroup> | ||
<TestConfigFileLines> | ||
<![CDATA[ | ||
<Configuration> | ||
<DailyTest>$(DailyTest)</DailyTest> | ||
<RuntimeVersion21>$(MicrosoftNETCoreApp21Version)</RuntimeVersion21> | ||
<AspNetCoreVersion21>$(MicrosoftAspNetCoreApp21Version)</AspNetCoreVersion21> | ||
<RuntimeVersion30>$(MicrosoftNETCoreApp30Version)</RuntimeVersion30> | ||
<AspNetCoreVersion30>$(MicrosoftAspNetCoreApp30Version)</AspNetCoreVersion30> | ||
<RuntimeVersion31>$(MicrosoftNETCoreApp31Version)</RuntimeVersion31> | ||
<AspNetCoreVersion31>$(MicrosoftAspNetCoreApp31Version)</AspNetCoreVersion31> | ||
<RuntimeVersionLatest>$(MicrosoftNETCoreAppVersion)</RuntimeVersionLatest> | ||
<AspNetCoreVersionLatest>$(MicrosoftAspNetCoreAppRefVersion)</AspNetCoreVersionLatest> | ||
</Configuration> | ||
]]> | ||
</TestConfigFileLines> | ||
</PropertyGroup> | ||
|
||
<WriteLinesToFile File="$(TestConfigFileName)" Lines="$(TestConfigFileLines)" Overwrite="true" WriteOnlyWhenDifferent="true" /> | ||
<Message Importance="High" Text="Created config file $(TestConfigFileName)" /> | ||
|
||
<ItemGroup> | ||
<FileWrites Include="$(TestConfigFileName)" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
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
Oops, something went wrong.