Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
Update Build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirdresher authored Aug 7, 2017
1 parent 8c10b98 commit a870ea0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,15 @@ $suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch

echo "build: Version suffix is $suffix"
msbuild serilog-sinks-loggly.sln /m /t:restore /p:Configuration=Release
msbuild serilog-sinks-loggly.sln /t:build /m /p:Configuration=Release
msbuild "src/Serilog.Sinks.Loggly/Serilog.Sinks.Loggly.csproj" /t:pack /p:Configuration=Release /p:PackageOutputPath=artifacts /p:NoPackageAnalysis=true
msbuild serilog-sinks-loggly.sln /t:build /m /p:Configuration=Release /p:VersionSuffix=$suffix
msbuild "src/Serilog.Sinks.Loggly/Serilog.Sinks.Loggly.csproj" /t:pack /p:Configuration=Release /p:VersionSuffix=$suffix /p:PackageOutputPath=artifacts /p:NoPackageAnalysis=true
foreach ($test in ls test/*.Tests) {
Push-Location $test

echo "build: Testing project in $test"

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

Pop-Location
}

0 comments on commit a870ea0

Please sign in to comment.