Skip to content

Commit

Permalink
Perf tests: BDN 0.10.3 + netcoreapp1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchester committed Mar 5, 2017
1 parent 76f599e commit 33ae3ec
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
16 changes: 8 additions & 8 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ foreach ($src in ls src/*) {
Pop-Location
}

foreach ($test in ls test/*.PerformanceTests) {
foreach ($test in ls test/*.Tests) {
Push-Location $test

echo "build: Building performance test project in $test"
echo "build: Testing project in $test"

& dotnet build -c Release
if($LASTEXITCODE -ne 0) { exit 2 }
& dotnet test -c Release
if($LASTEXITCODE -ne 0) { exit 3 }

Pop-Location
}

foreach ($test in ls test/*.Tests) {
foreach ($test in ls test/*.PerformanceTests) {
Push-Location $test

echo "build: Testing project in $test"
echo "build: Building performance test project in $test"

& dotnet test -c Release
if($LASTEXITCODE -ne 0) { exit 3 }
& dotnet build -c Release
if($LASTEXITCODE -ne 0) { exit 2 }

Pop-Location
}
Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ for path in src/**/*.csproj; do
dotnet build -f netstandard1.3 -c Release ${path}
done

for path in test/Serilog.Tests/*.csproj; do
for path in test/*.Tests/*.csproj; do
dotnet test -f netcoreapp1.0 -c Release ${path}
done

# for path in test/Serilog.PerformanceTests/Serilog.PerformanceTests.csproj; do
# dotnet test -f netcoreapp1.0 -c Release ${path}
# done
for path in test/*.PerformanceTests/*.PerformanceTests.csproj; do
dotnet test -f netcoreapp1.1 -c Release ${path}
done
8 changes: 5 additions & 3 deletions test/Serilog.PerformanceTests/Serilog.PerformanceTests.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp1.0;net452</TargetFrameworks>
<TargetFrameworks>netcoreapp1.1;net452</TargetFrameworks>
<AssemblyName>Serilog.PerformanceTests</AssemblyName>
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageId>Serilog.PerformanceTests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">$(PackageTargetFallback);dnxcore50;portable-net45+win8</PackageTargetFallback>
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.1' ">
$(PackageTargetFallback);dnxcore50;portable-net45+win8
</PackageTargetFallback>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Serilog\Serilog.csproj" />
Expand All @@ -16,7 +18,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="BenchmarkDotNet" Version="0.9.9" />
<PackageReference Include="BenchmarkDotNet" Version="0.10.3" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">
</ItemGroup>
Expand Down

0 comments on commit 33ae3ec

Please sign in to comment.