aboutsummaryrefslogtreecommitdiffstats
path: root/appveyor.ps1
blob: 968c0889d7b9142b49a949bd5112224d3cbb93b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$ErrorActionPreference = "Stop"

function CheckLastExitCode
{
    param ([int[]]$SuccessCodes = @(0))

    if ($SuccessCodes -notcontains $LastExitCode)
	{
        $msg = @"
EXE RETURNED EXIT CODE $LastExitCode
CALLSTACK:$(Get-PSCallStack | Out-String)
"@
        throw $msg
    }
}


mvn verify "--batch-mode" "-B" "-e" "-V"
CheckLastExitCode