Skip to content

Commit

Permalink
Merge pull request #174 from martincostello/Update-SDK
Browse files Browse the repository at this point in the history
Update SDK and some NuGet packages
  • Loading branch information
martincostello committed Apr 8, 2019
2 parents d72b96c + e0c4959 commit 4026912
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
27 changes: 15 additions & 12 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if ($installDotNetSdk -eq $true) {
}

$env:PATH = "$env:DOTNET_INSTALL_DIR;$env:PATH"
$dotnet = "$env:DOTNET_INSTALL_DIR\dotnet"
$dotnet = "$env:DOTNET_INSTALL_DIR\dotnet.exe"
}
else {
$dotnet = "dotnet"
Expand Down Expand Up @@ -82,7 +82,7 @@ function DotNetTest {
$openCoverVersion = "4.7.922"
$openCoverPath = Join-Path $nugetPath "OpenCover\$openCoverVersion\tools\OpenCover.Console.exe"

$reportGeneratorVersion = "4.0.11"
$reportGeneratorVersion = "4.1.0"
$reportGeneratorPath = Join-Path $nugetPath "ReportGenerator\$reportGeneratorVersion\tools\netcoreapp2.0\ReportGenerator.dll"

$coverageOutput = Join-Path $OutputPath "code-coverage.xml"
Expand All @@ -91,22 +91,25 @@ function DotNetTest {
& $openCoverPath `
`"-target:$dotnetPath`" `
`"-targetargs:test $Project --output $OutputPath`" `
-output:$coverageOutput `
`"-excludebyattribute:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage*`" `
-hideskipped:All `
`"-output:$coverageOutput`" `
`"-excludebyattribute:*.ExcludeFromCodeCoverage*`" `
`"-hideskipped:All`" `
-mergebyhash `
-mergeoutput `
-oldstyle `
-register:user `
`"-register:user`" `
-returntargetcode `
-skipautoprops `
`"-filter:+[JustEat.StatsD]* -[*Test*]*`"

& $dotnet `
$reportGeneratorPath `
`"-reports:$coverageOutput`" `
`"-targetdir:$reportOutput`" `
-reporttypes:HTML`;Cobertura `
-verbosity:Warning
if ($LASTEXITCODE -eq 0) {
& $dotnet `
$reportGeneratorPath `
`"-reports:$coverageOutput`" `
`"-targetdir:$reportOutput`" `
-reporttypes:HTML`;Cobertura `
-verbosity:Warning
}
}

if ($LASTEXITCODE -ne 0) {
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<PackageReference Include="Microsoft.CodeQuality.Analyzers" Version="2.9.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.NetCore.Analyzers" Version="2.9.1" PrivateAssets="All" />
<PackageReference Include="OpenCover" Version="4.7.922" PrivateAssets="All" />
<PackageReference Include="ReportGenerator" Version="4.0.11" PrivateAssets="All" />
<PackageReference Include="ReportGenerator" Version="4.1.0" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "2.2.103"
"version": "2.2.202"
}
}
2 changes: 1 addition & 1 deletion tests/Benchmark/Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.11.4" />
<PackageReference Include="BenchmarkDotNet" Version="0.11.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\JustEat.StatsD\JustEat.StatsD.csproj" />
Expand Down

0 comments on commit 4026912

Please sign in to comment.