-
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.
- Loading branch information
Showing
225 changed files
with
1,539 additions
and
61,808 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
Large diffs are not rendered by default.
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 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,7 +1,16 @@ | ||
<Project> | ||
|
||
<Target Name="_VerifyNuGetPackages" AfterTargets="Pack" Condition=" '$(OS)' == 'Windows_NT' "> | ||
<Exec Command="powershell -NoProfile -NoLogo -ExecutionPolicy Bypass $(RepositoryEngineeringDir)\verify-nupkgs.ps1 -configuration $(Configuration)" /> | ||
<Exec Command="powershell -NoProfile -NoLogo -ExecutionPolicy Bypass $(RepositoryEngineeringDir)\verify-nupkgs.ps1 -configuration $(Configuration) -versionPrefix $(versionPrefix)" /> | ||
</Target> | ||
|
||
<!-- | ||
This is tricky. When you run tests in part of Build, this target won't run after you've run your tests, | ||
if you run as separate step you have no way of saying that you will run tests later. If you'd move this into | ||
Directory.Build.targets you would run it for every single integration tests project. So running it after | ||
pack is probably the best. | ||
--> | ||
<Target Name="_InstallAdditionalDotnetSdk" AfterTargets="Pack" Condition=" '$(OS)' == 'Windows_NT' "> | ||
<Exec Command="powershell -NoProfile -NoLogo -ExecutionPolicy Bypass $(RepositoryEngineeringDir)\install-additional-dotnet-sdks.ps1 -dotnetInstallDir $(DOTNET_INSTALL_DIR) -RepoRoot $(RepoRoot)" /> | ||
</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
Empty file.
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,29 @@ | ||
param ( | ||
[Parameter(Mandatory)] | ||
[string] $DotnetInstallDir, | ||
[Parameter(Mandatory)] | ||
[string] $RepoRoot | ||
) | ||
|
||
Write-Host "Installing additional dotnet SDKs for integration tests." | ||
|
||
$eng = $PSScriptRoot | ||
. $eng/common/tools.ps1 | ||
|
||
$globalJson = Get-Content $RepoRoot/global.json | ConvertFrom-Json | ||
$sdkVersions = @("x86") | ||
|
||
foreach ($architecture in $sdkVersions) { | ||
$version = $globalJson.sdk.version | ||
$dotnetRoot = "$DotnetInstallDir/dotnet-sdk-$architecture" | ||
|
||
InstallDotNetSdk -dotnetRoot $dotnetRoot -version $version -architecture $architecture -noPath | ||
|
||
$runtimeVersions = @($globalJson.tools.runtimes."dotnet/$($architecture)") | ||
foreach ($runtimeVersion in $runtimeVersions) { | ||
if ($runtimeVersion -like "8.*") { | ||
$stop= $true | ||
} | ||
InstallDotNet -runtime "dotnet" -dotnetRoot $dotnetRoot -version $runtimeVersion -architecture $architecture -noPath | ||
} | ||
} |
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,70 @@ | ||
[CmdletBinding(PositionalBinding=$false)] | ||
Param( | ||
[string][Alias('c')]$configuration = "Debug", | ||
[string]$platform = $null, | ||
[string] $projects, | ||
[string][Alias('v')]$verbosity = "minimal", | ||
[string] $msbuildEngine = $null, | ||
[bool] $warnAsError = $true, | ||
[bool] $nodeReuse = $true, | ||
[switch][Alias('r')]$restore, | ||
[switch] $deployDeps, | ||
[switch][Alias('b')]$build, | ||
[switch] $rebuild, | ||
[switch] $deploy, | ||
[switch][Alias('t')]$test, | ||
[switch] $integrationTest, | ||
[switch] $performanceTest, | ||
[switch] $sign, | ||
[switch] $pack, | ||
[switch] $publish, | ||
[switch] $clean, | ||
[switch][Alias('bl')]$binaryLog, | ||
[switch][Alias('nobl')]$excludeCIBinarylog, | ||
[switch] $ci, | ||
[switch] $prepareMachine, | ||
[string] $runtimeSourceFeed = '', | ||
[string] $runtimeSourceFeedKey = '', | ||
[switch] $excludePrereleaseVS, | ||
[switch] $nativeToolsOnMachine, | ||
[switch] $help, | ||
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties | ||
) | ||
|
||
$count = 0 | ||
$err = $null | ||
$path = "$PSScriptRoot/common/build.ps1" | ||
# CIBuild.cmd script specifies restore -build -test -sign -pack -publish -ci $args | ||
$PSBoundParameters["restore"] = $true | ||
$PSBoundParameters["build"] = $true | ||
$PSBoundParameters["test"] = $true | ||
$PSBoundParameters["sign"] = $true | ||
$PSBoundParameters["pack"] = $true | ||
$PSBoundParameters["publish"] = $true | ||
$PSBoundParameters["ci"] = $true | ||
|
||
$cmd = "$path $(foreach($pair in $PSBoundParameters.GetEnumerator()) { "-$($pair.Key)=$($pair.Value)"})" | ||
while (3 -gt $count) { | ||
$err = $null | ||
$count++ | ||
try { | ||
& $path @PSBoundParameters | ||
if (0 -ne $LASTEXITCODE) { | ||
Write-Host ">>> Try ${count}: Command '$cmd' failed, with exit code $LASTEXITCODE." | ||
continue | ||
} | ||
} | ||
catch { | ||
$err = $_ | ||
Write-Host ">>> Try ${count}: Command '$cmd' failed, with $_." | ||
continue | ||
} | ||
|
||
Write-Host ">>> Try ${count}: Command '$cmd' succeeded." | ||
break | ||
} | ||
|
||
if ($null -ne $err) { | ||
throw $err | ||
} | ||
|
Oops, something went wrong.