From 3b94a2b108070cfb5e2095eecbaeac02165cc334 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Sun, 27 Sep 2015 21:15:54 +0200 Subject: Add AppVeyor configuration --- appveyor.ps1 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 appveyor.ps1 (limited to 'appveyor.ps1') diff --git a/appveyor.ps1 b/appveyor.ps1 new file mode 100644 index 00000000000..d7ce18e5f03 --- /dev/null +++ b/appveyor.ps1 @@ -0,0 +1,29 @@ +$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 + } +} + +switch ($env:RUN) +{ + "ci" + { + mvn package "--batch-mode" "-B" "-e" "-V" + CheckLastExitCode + } + + default + { + throw "Unexpected test mode: ""$env:RUN""" + } +} -- cgit v1.2.3