From 6cbe2c88f69b05ff1f6a71f190a24f00e6d78e4d Mon Sep 17 00:00:00 2001 From: Medeni Baykal <433724+Haplois@users.noreply.github.com> Date: Mon, 25 Jan 2021 16:27:17 +0100 Subject: [PATCH] Added git branch and commit NuGet packages --- scripts/build.ps1 | 32 +++++++++++++++--- scripts/build.sh | 2 +- scripts/verify-nupkgs.ps1 | 22 ++++++------ src/package/Icon.png | Bin 0 -> 7006 bytes src/package/external/external.csproj | 2 +- .../nuspec/Microsoft.CodeCoverage.nuspec | 13 ++++++- .../nuspec/Microsoft.NET.Test.Sdk.nuspec | 17 +++++++++- .../Microsoft.TestPlatform.Portable.nuspec | 9 ++++- .../nuspec/Microsoft.TestPlatform.nuspec | 9 ++++- src/package/nuspec/TestPlatform.Build.nuspec | 13 ++++++- src/package/nuspec/TestPlatform.CLI.nuspec | 10 +++++- .../TestPlatform.Extensions.TrxLogger.nuspec | 10 +++++- .../nuspec/TestPlatform.ObjectModel.nuspec | 10 +++++- .../nuspec/TestPlatform.TestHost.nuspec | 15 ++++++-- .../TestPlatform.TranslationLayer.nuspec | 10 +++++- .../TestPlatformNugetPackageTests.cs | 19 +++++++++-- .../IntegrationTestEnvironment.cs | 3 +- 17 files changed, 165 insertions(+), 31 deletions(-) create mode 100644 src/package/Icon.png diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 98158a6594..fb6ced6651 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -56,6 +56,29 @@ Param( $ErrorActionPreference = "Stop" +# +# Git Branch +# +$TPB_BRANCH = "LOCALBRANCH" +$TPB_COMMIT = "LOCALBUILD" + +try { + $TPB_BRANCH = $env:BUILD_SOURCEBRANCH -replace "^refs/heads/" + if ([string]::IsNullOrWhiteSpace($TPB_BRANCH)) { + $TPB_BRANCH = git -C "." rev-parse --abbrev-ref HEAD + } +} +catch { } + +try { + $TPB_COMMIT = $env:BUILD_SOURCEVERSION + if ([string]::IsNullOrWhiteSpace($TPB_COMMIT)) { + $TPB_COMMIT = git -C "." rev-parse HEAD + } +} +catch { } + + # # Variables # @@ -87,7 +110,7 @@ Write-Verbose "Setup dotnet configuration." $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1 # Dotnet build doesn't support --packages yet. See https://github.com/dotnet/cli/issues/2712 $env:NUGET_PACKAGES = $env:TP_PACKAGES_DIR -$env:NUGET_EXE_Version = "3.4.3" +$env:NUGET_EXE_Version = "5.8.1" $env:DOTNET_CLI_VERSION = "6.0.100-alpha.1.21067.8" # $env:DOTNET_RUNTIME_VERSION = "LATEST" $env:VSWHERE_VERSION = "2.0.2" @@ -738,8 +761,7 @@ function Create-VsixPackage } Copy-Item -Recurse $comComponentsDirectoryTIA\* $legacyTestImpactComComponentsDir -Force - $fileToCopy = Join-Path $env:TP_PACKAGE_PROJ_DIR "ThirdPartyNotices.txt" - Copy-Item $fileToCopy $packageDir -Force + Copy-Item (Join-Path $env:TP_PACKAGE_PROJ_DIR "ThirdPartyNotices.txt") $packageDir -Force Write-Verbose "Locating MSBuild install path..." $msbuildPath = Locate-MSBuildPath @@ -773,6 +795,8 @@ function Create-NugetPackages Write-Log "Create-NugetPackages: Started." $stagingDir = Join-Path $env:TP_OUT_DIR $TPB_Configuration $packageOutputDir = $TPB_PackageOutDir + + Copy-Item (Join-Path $env:TP_PACKAGE_PROJ_DIR "Icon.png") $stagingDir -Force if (-not (Test-Path $packageOutputDir)) { New-Item $packageOutputDir -type directory -Force @@ -835,7 +859,7 @@ function Create-NugetPackages } Write-Verbose "$nugetExe pack $stagingDir\$file -OutputDirectory $packageOutputDir -Version $TPB_Version -Properties Version=$TPB_Version $additionalArgs" - & $nugetExe pack $stagingDir\$file -OutputDirectory $packageOutputDir -Version $TPB_Version -Properties Version=$TPB_Version`;JsonNetVersion=$JsonNetVersion`;Runtime=$TPB_TargetRuntime`;NetCoreTargetFramework=$TPB_TargetFrameworkCore20`;FakesPackageDir=$FakesPackageDir`;NetStandard10Framework=$TPB_TargetFrameworkNS10`;NetStandard13Framework=$TPB_TargetFrameworkNS13`;NetStandard20Framework=$TPB_TargetFrameworkNS20`;Uap10Framework=$testhostUapPackageDir $additionalArgs + & $nugetExe pack $stagingDir\$file -OutputDirectory $packageOutputDir -Version $TPB_Version -Properties Version=$TPB_Version`;JsonNetVersion=$JsonNetVersion`;Runtime=$TPB_TargetRuntime`;NetCoreTargetFramework=$TPB_TargetFrameworkCore20`;FakesPackageDir=$FakesPackageDir`;NetStandard10Framework=$TPB_TargetFrameworkNS10`;NetStandard13Framework=$TPB_TargetFrameworkNS13`;NetStandard20Framework=$TPB_TargetFrameworkNS20`;Uap10Framework=$testhostUapPackageDir`;BranchName=$TPB_BRANCH`;CommitId=$TPB_COMMIT $additionalArgs Set-ScriptFailedOnError } diff --git a/scripts/build.sh b/scripts/build.sh index bbf8b1efa0..6325f174ac 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -388,7 +388,7 @@ function create_package() # Copy over empty and third patry notice file cp "$TP_PACKAGE_NUSPEC_DIR/_._" $stagingDir cp "$TP_PACKAGE_NUSPEC_DIR/../ThirdPartyNotices.txt" $stagingDir - + cp "$TP_PACKAGE_NUSPEC_DIR/../Icon.png" $stagingDir for i in ${projectFiles[@]}; do log "$dotnet pack --no-build $stagingDir/${i} -o $packageOutputDir -p:Version=$TPB_Version" \ diff --git a/scripts/verify-nupkgs.ps1 b/scripts/verify-nupkgs.ps1 index 3b9b983a74..0d0509c070 100644 --- a/scripts/verify-nupkgs.ps1 +++ b/scripts/verify-nupkgs.ps1 @@ -8,21 +8,21 @@ function Unzip [System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath) } - function Verify-Nuget-Packages($packageDirectory, $version) { Write-Log "Starting Verify-Nuget-Packages." $expectedNumOfFiles = @{ - "Microsoft.CodeCoverage" = 59; - "Microsoft.NET.Test.Sdk" = 18; - "Microsoft.TestPlatform" = 513; - "Microsoft.TestPlatform.Build" = 19; - "Microsoft.TestPlatform.CLI" = 379; - "Microsoft.TestPlatform.Extensions.TrxLogger" = 33; - "Microsoft.TestPlatform.ObjectModel" = 178; - "Microsoft.TestPlatform.Portable" = 568; - "Microsoft.TestPlatform.TestHost" = 212; - "Microsoft.TestPlatform.TranslationLayer" = 121} + "Microsoft.CodeCoverage" = 60; + "Microsoft.NET.Test.Sdk" = 26; + "Microsoft.TestPlatform" = 514; + "Microsoft.TestPlatform.Build" = 20; + "Microsoft.TestPlatform.CLI" = 380; + "Microsoft.TestPlatform.Extensions.TrxLogger" = 34; + "Microsoft.TestPlatform.ObjectModel" = 179; + "Microsoft.TestPlatform.Portable" = 569; + "Microsoft.TestPlatform.TestHost" = 213; + "Microsoft.TestPlatform.TranslationLayer" = 122; + } $nugetPackages = Get-ChildItem -Filter "*$version*.nupkg" $packageDirectory | % { $_.FullName } diff --git a/src/package/Icon.png b/src/package/Icon.png new file mode 100644 index 0000000000000000000000000000000000000000..a0f1fdbf4d5eae0e561018cccee74f6a454cdb9c GIT binary patch literal 7006 zcmeHMXH-+`n%)#eMU;C)kZw7O2nvFLpcE@A^-u+AN(mh$UH*JD5Jjm{4}uUR zs5C(zdURn*zrcHqdVxK)P)7322TAMVbNR4HRzo3_~zdgjvf?Ot98@H{LHdy zK*)TM=g&B9f}+9IKfm=aF5e3_{PQJ$ zY4?9DHvtd+Y14o8TQs=)&+P)Wjb3|LIT@*NDqyYm#gu^q*EFSow<%yKVx`_Ka)!0 z2YAaQr%LYyQ%n$Rjx)e%JeM5_ov70FUMveJTS(J+%C4(L)~h*MQ8!wJtf_X{`Ol?k z;{27%#**2uiR&R6-eaRK1Mdgl2xHQ=uS(~VqsTVrsUnQhc zRIK5>@(05w3gHYdsI0;;sOO66pUEl)DGyD(D4>$7drUDFZ|uxx;-nWj7d|rj=u+D@ z-HU+mLOInrsXdSL1Z6nVB&D z@>f4!yq=_B+16+qw5k=4o#*tf;6Oe*F;`&L!)bT{U7Wc3YmG2;NRxb%woCt~*Yr2E zfwiUdS=7SK&5>df-aqY8lp~SEUG*ziXGvHMLp_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Hs&PnH^f*Wl6k z?<0KM*e@M?auAvtBi}A#6V#ej{yvSOE8v?4^Jb8y4~i{ zSIC{Kc9#!&HhKqJI9L>s*NbwiwWXI+w-X6TM}&3$PlPOE+G8HP8Hi(#UMtyKy= zLo(ZOb7qTQ^r{NHBg^h=C`gbboZigk0*;z5+XW@P;EzUwQZv5|SZ6W0tBbATVDt$& z4th!!{t_tBc>V9qZE^8&@=VbaMh;!ivCF~IC28PzN2Z{@`)H;y3+{?j%eQl6gP|I9 z-agi;Y>P($m>0yG48Z>=AC0W_h5((46THSuk)X||?u=A_N-{J)`M9Q^WnUMh84VTQ zIvQlFtG4Z5X~3!o0K!K+^E@{TZ;5W3XkNzy z*j?DZB4J)s(LK@K0K1T4u&xvPHDTX zs$=NfQalJo9RXF+0@j1~t~aK@*DAWgsI@Sl{8AP8%T`P`Vu~Tv_%ZmbJz^#V>NJZl-TbST^RMK5DlNOs$kegkbICLYRJk-}g{l-Wn^Vya`SL3T1tiIw^Z zm~h)cx+UimpKrqQ=$a*_BCrvMGi%5Nr5qU)hq|P1Tjp!gLgpIqRRIs`qsDGjcel*OH-c~&6W812bsUI z>umkx8_8Ottu&n?L`^t@;63h8!Nb19V4*G1v2?3e;$WrvvX7%#JaxH?R) zN@KLmgq3q$NONDrj=7c`8~kK5VTf>xS$Q2C8@T{(7ygTX1N^6hZ&3*F7Z@!5FaMz+ n@b3Qu^xx$8Uk}h2jH{d|uJ4jrSC|P(2)ca1@;v^m$K8JeR7TPQ literal 0 HcmV?d00001 diff --git a/src/package/external/external.csproj b/src/package/external/external.csproj index b1197a9b2b..effc47856a 100644 --- a/src/package/external/external.csproj +++ b/src/package/external/external.csproj @@ -26,7 +26,7 @@ - 3.4.3 + 5.8.1 All diff --git a/src/package/nuspec/Microsoft.CodeCoverage.nuspec b/src/package/nuspec/Microsoft.CodeCoverage.nuspec index 64e6ff9af3..ac1e347e9c 100644 --- a/src/package/nuspec/Microsoft.CodeCoverage.nuspec +++ b/src/package/nuspec/Microsoft.CodeCoverage.nuspec @@ -1,5 +1,5 @@ - + Microsoft.CodeCoverage $Version$ @@ -10,12 +10,23 @@ Microsoft.CodeCoverage package brings infra for collecting code coverage from vstest.console.exe and "dotnet test". http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm http://go.microsoft.com/fwlink/?LinkID=288859 + Icon.png https://github.com/microsoft/vstest/ © Microsoft Corporation. All rights reserved. vstest visual-studio unittest testplatform mstest microsoft test testing codecoverage code-coverage + + + + + + + diff --git a/src/package/nuspec/Microsoft.NET.Test.Sdk.nuspec b/src/package/nuspec/Microsoft.NET.Test.Sdk.nuspec index ba59062cb5..a98d7a64eb 100644 --- a/src/package/nuspec/Microsoft.NET.Test.Sdk.nuspec +++ b/src/package/nuspec/Microsoft.NET.Test.Sdk.nuspec @@ -1,5 +1,5 @@ - + Microsoft.NET.Test.Sdk $Version$ @@ -9,10 +9,15 @@ true http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm http://go.microsoft.com/fwlink/?LinkID=288859 + Icon.png The MSbuild targets and properties for building .NET test projects. © Microsoft Corporation. All rights reserved. https://github.com/microsoft/vstest/ vstest visual-studio unittest testplatform mstest microsoft test testing + @@ -30,6 +35,7 @@ + @@ -37,15 +43,24 @@ + + + + + + + + + diff --git a/src/package/nuspec/Microsoft.TestPlatform.Portable.nuspec b/src/package/nuspec/Microsoft.TestPlatform.Portable.nuspec index 579a948c62..5daced586d 100644 --- a/src/package/nuspec/Microsoft.TestPlatform.Portable.nuspec +++ b/src/package/nuspec/Microsoft.TestPlatform.Portable.nuspec @@ -1,5 +1,5 @@  - + Microsoft.TestPlatform.Portable 15.0.0 @@ -11,11 +11,18 @@ This package contains a subset of binaries for the Visual Studio Test Platform (vstest). vstest provides a modern, cross platform testing engine that also powers the testing on .NET Core. Supports the following popular test frameworks - MSTest v2, xUnit and Nunit with support for extensibility. https://www.visualstudio.com/microsoft-visual-studio-test-platform http://go.microsoft.com/fwlink/?LinkID=288859 + Icon.png https://github.com/microsoft/vstest/ © Microsoft Corporation. All rights reserved. vstest visual-studio unittest testplatform mstest microsoft test testing + + + diff --git a/src/package/nuspec/Microsoft.TestPlatform.nuspec b/src/package/nuspec/Microsoft.TestPlatform.nuspec index 21306928ca..1e0e3b6103 100644 --- a/src/package/nuspec/Microsoft.TestPlatform.nuspec +++ b/src/package/nuspec/Microsoft.TestPlatform.nuspec @@ -1,5 +1,5 @@  - + Microsoft.TestPlatform 15.0.0 @@ -11,11 +11,18 @@ This package contains the full set of binaries for the Visual Studio Test Platform (vstest). It provides a modern, cross platform testing engine that powers the testing on .NET Core as well. It integrates with popular test frameworks like MSTest(v1 and v2), xUnit and Nunit with support for extensibility. https://www.visualstudio.com/microsoft-visual-studio-test-platform http://go.microsoft.com/fwlink/?LinkID=288859 + Icon.png https://github.com/microsoft/vstest/ © Microsoft Corporation. All rights reserved. vstest visual-studio unittest testplatform mstest microsoft test testing + + + diff --git a/src/package/nuspec/TestPlatform.Build.nuspec b/src/package/nuspec/TestPlatform.Build.nuspec index 92c0d9d73b..79dc3c3341 100644 --- a/src/package/nuspec/TestPlatform.Build.nuspec +++ b/src/package/nuspec/TestPlatform.Build.nuspec @@ -1,5 +1,5 @@  - + Microsoft.TestPlatform.Build 15.0.0 @@ -10,11 +10,22 @@ Build tasks and targets for running tests with Test Platform http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm http://go.microsoft.com/fwlink/?LinkID=288859 + Icon.png https://github.com/microsoft/vstest/ © Microsoft Corporation. All rights reserved. vstest visual-studio unittest testplatform mstest microsoft test testing + + + + + + + diff --git a/src/package/nuspec/TestPlatform.CLI.nuspec b/src/package/nuspec/TestPlatform.CLI.nuspec index ce0da80674..57a9d36ade 100644 --- a/src/package/nuspec/TestPlatform.CLI.nuspec +++ b/src/package/nuspec/TestPlatform.CLI.nuspec @@ -1,5 +1,5 @@  - + Microsoft.TestPlatform.CLI 15.0.0 @@ -10,14 +10,22 @@ The cross platform Microsoft Test Platform. http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm http://go.microsoft.com/fwlink/?LinkID=288859 + Icon.png https://github.com/microsoft/vstest/ © Microsoft Corporation. All rights reserved. vstest visual-studio unittest testplatform mstest microsoft test testing + + + + diff --git a/src/package/nuspec/TestPlatform.Extensions.TrxLogger.nuspec b/src/package/nuspec/TestPlatform.Extensions.TrxLogger.nuspec index 4ff5a3cbbf..94d86b5633 100644 --- a/src/package/nuspec/TestPlatform.Extensions.TrxLogger.nuspec +++ b/src/package/nuspec/TestPlatform.Extensions.TrxLogger.nuspec @@ -1,5 +1,5 @@ - + Microsoft.TestPlatform.Extensions.TrxLogger 15.0.0 @@ -10,9 +10,15 @@ C# SDK for the test platform protocol. This SDK can be used in IDE or Editors to use test platform for discovery and execution of tests. http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm http://go.microsoft.com/fwlink/?LinkID=288859 + Icon.png https://github.com/microsoft/vstest/ © Microsoft Corporation. All rights reserved. vstest visual-studio unittest testplatform mstest microsoft test testing + + @@ -33,6 +39,8 @@ + + diff --git a/src/package/nuspec/TestPlatform.ObjectModel.nuspec b/src/package/nuspec/TestPlatform.ObjectModel.nuspec index f1b881146b..e76d1096e8 100644 --- a/src/package/nuspec/TestPlatform.ObjectModel.nuspec +++ b/src/package/nuspec/TestPlatform.ObjectModel.nuspec @@ -1,5 +1,5 @@  - + Microsoft.TestPlatform.ObjectModel 15.0.0 @@ -10,9 +10,15 @@ The Microsoft Test Platform Object Model. http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm http://go.microsoft.com/fwlink/?LinkID=288859 + Icon.png https://github.com/microsoft/vstest/ © Microsoft Corporation. All rights reserved. vstest visual-studio unittest testplatform mstest microsoft test testing + + @@ -76,6 +82,8 @@ + + diff --git a/src/package/nuspec/TestPlatform.TestHost.nuspec b/src/package/nuspec/TestPlatform.TestHost.nuspec index a3896fc778..15839c44cc 100644 --- a/src/package/nuspec/TestPlatform.TestHost.nuspec +++ b/src/package/nuspec/TestPlatform.TestHost.nuspec @@ -1,5 +1,5 @@  - + Microsoft.TestPlatform.TestHost $Version$ @@ -10,9 +10,15 @@ Testplatform host executes the test using specified adapter. http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm http://go.microsoft.com/fwlink/?LinkID=288859 + Icon.png https://github.com/microsoft/vstest/ © Microsoft Corporation. All rights reserved. vstest visual-studio unittest testplatform mstest microsoft test testing + + @@ -25,7 +31,6 @@ - @@ -38,12 +43,18 @@ + + + + + + diff --git a/src/package/nuspec/TestPlatform.TranslationLayer.nuspec b/src/package/nuspec/TestPlatform.TranslationLayer.nuspec index ad12872f4f..62d30c85e4 100644 --- a/src/package/nuspec/TestPlatform.TranslationLayer.nuspec +++ b/src/package/nuspec/TestPlatform.TranslationLayer.nuspec @@ -1,5 +1,5 @@  - + Microsoft.TestPlatform.TranslationLayer 15.0.0 @@ -10,9 +10,15 @@ C# SDK for the test platform protocol. This SDK can be used in IDE or Editors to use test platform for discovery and execution of tests. http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm http://go.microsoft.com/fwlink/?LinkID=288859 + Icon.png https://github.com/microsoft/vstest/ © Microsoft Corporation. All rights reserved. vstest visual-studio unittest testplatform mstest microsoft test testing + + @@ -30,6 +36,8 @@ + + diff --git a/test/Microsoft.TestPlatform.AcceptanceTests/TestPlatformNugetPackageTests.cs b/test/Microsoft.TestPlatform.AcceptanceTests/TestPlatformNugetPackageTests.cs index 57ce0f7d8f..384215d185 100644 --- a/test/Microsoft.TestPlatform.AcceptanceTests/TestPlatformNugetPackageTests.cs +++ b/test/Microsoft.TestPlatform.AcceptanceTests/TestPlatformNugetPackageTests.cs @@ -25,8 +25,15 @@ public static void ClassInit(TestContext testContext) nugetPackageFolder = Path.Combine(packageLocation, Path.GetFileNameWithoutExtension(nugetPackage)); ZipFile.ExtractToDirectory(nugetPackage, nugetPackageFolder); - Directory.Move(Path.Combine(nugetPackageFolder, "tools", "net451", "Team%20Tools"), Path.Combine(nugetPackageFolder, "tools", "net451", "Team Tools")); - Directory.Move(Path.Combine(nugetPackageFolder, "tools", "net451", "Team Tools", "Dynamic%20Code%20Coverage%20Tools"), Path.Combine(nugetPackageFolder, "tools", "net451", "Team Tools", "Dynamic Code Coverage Tools")); + TryMoveDirectory( + sourceDirName: Path.Combine(nugetPackageFolder, "tools", "net451", "Team%20Tools"), + destDirName: Path.Combine(nugetPackageFolder, "tools", "net451", "Team Tools") + ); + + TryMoveDirectory( + sourceDirName: Path.Combine(nugetPackageFolder, "tools", "net451", "Team Tools", "Dynamic%20Code%20Coverage%20Tools"), + destDirName: Path.Combine(nugetPackageFolder, "tools", "net451", "Team Tools", "Dynamic Code Coverage Tools") + ); } [ClassCleanup] @@ -97,5 +104,13 @@ private string CreateCodeCoverageArguments( return arguments; } + + private static void TryMoveDirectory(string sourceDirName, string destDirName) + { + if (Directory.Exists(sourceDirName)) + { + Directory.Move(sourceDirName, destDirName); + } + } } } diff --git a/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestEnvironment.cs b/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestEnvironment.cs index 947ad4b53d..62e8031dd0 100644 --- a/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestEnvironment.cs +++ b/test/Microsoft.TestPlatform.TestUtilities/IntegrationTestEnvironment.cs @@ -17,7 +17,8 @@ namespace Microsoft.TestPlatform.TestUtilities /// public class IntegrationTestEnvironment { - public static string TestPlatformRootDirectory = Environment.GetEnvironmentVariable("TP_ROOT_DIR"); + public static string TestPlatformRootDirectory = Environment.GetEnvironmentVariable("TP_ROOT_DIR") + ?? Path.GetFullPath(@"..\..\..\..\..".Replace('\\', Path.DirectorySeparatorChar)); private static Dictionary dependencyVersions;