Skip to content

Commit

Permalink
Moved to isolated perf test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
merbla committed Jun 14, 2016
1 parent 9d2b472 commit 3d353c8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
21 changes: 21 additions & 0 deletions RunPerfTests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Push-Location $PSScriptRoot

if(Test-Path .\artifacts) { Remove-Item .\artifacts -Force -Recurse }

& dotnet restore

$revision = @{ $true = $env:APPVEYOR_BUILD_NUMBER; $false = 1 }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];

Push-Location src/Serilog

& dotnet build -c Release -o ..\..\.\artifacts --version-suffix=$revision
if($LASTEXITCODE -ne 0) { exit 1 }

Pop-Location
Push-Location test/Serilog.PerformanceTests

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

Pop-Location
Pop-Location
3 changes: 1 addition & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ done

for path in test/Serilog.PerformanceTests/project.json; do
dirname="$(dirname "${path}")"
dotnet build ${dirname} -f netcoreapp1.0 -c Release
dotnet test ${dirname} -f netcoreapp1.0 -c Release
dotnet build ${dirname} -f netcoreapp1.0 -c Release
done
10 changes: 10 additions & 0 deletions run_perf_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
dotnet restore
for path in src/*/project.json; do
dirname="$(dirname "${path}")"
dotnet build ${dirname} -c Release
done
for path in test/Serilog.PerformanceTests/project.json; do
dirname="$(dirname "${path}")"
dotnet test ${dirname} -f netcoreapp1.0 -c Release
done

0 comments on commit 3d353c8

Please sign in to comment.