Skip to content

Commit

Permalink
throw when tests fail, should fail AppVeyor build as well
Browse files Browse the repository at this point in the history
(fixes #24)
  • Loading branch information
christianspecht committed Oct 9, 2018
1 parent c9dcbf3 commit 348bd1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build-release.ps1
Expand Up @@ -34,31 +34,31 @@ dotnet restore
Write-Host '###### BUILD SOLUTION ######'
dotnet build -c Release
if ($LASTEXITCODE -eq 1) {
exit
throw
}


''
Write-Host '###### UNIT TESTS ######'
dotnet test "$PSScriptRoot\src\ScmBackup.Tests\ScmBackup.Tests.csproj" -c Release
if ($LASTEXITCODE -eq 1) {
exit
throw
}


''
Write-Host '###### INTEGRATION TESTS ######'
dotnet test "$PSScriptRoot\src\ScmBackup.Tests.Integration\ScmBackup.Tests.Integration.csproj" -c Release
if ($LASTEXITCODE -eq 1) {
exit
throw
}


''
Write-Host '###### PUBLISH ######'
dotnet publish "$PSScriptRoot\src\ScmBackup" -c Release -o "$PSScriptRoot\release\bin"
if ($LASTEXITCODE -eq 1) {
exit
throw
}


Expand Down
4 changes: 2 additions & 2 deletions run-all-tests.ps1
Expand Up @@ -22,14 +22,14 @@ if (Test-Path -Path $temppath) {
Write-Host '###### UNIT TESTS ######'
dotnet test "$PSScriptRoot\src\ScmBackup.Tests\ScmBackup.Tests.csproj" -c Release
if ($LASTEXITCODE -eq 1) {
exit
throw
}


''
Write-Host '###### INTEGRATION TESTS ######'
dotnet test "$PSScriptRoot\src\ScmBackup.Tests.Integration\ScmBackup.Tests.Integration.csproj" -c Release
if ($LASTEXITCODE -eq 1) {
exit
throw
}

0 comments on commit 348bd1c

Please sign in to comment.