Add $ErrorActionPreference = 'Continue';

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE 2015-12-20 07:50:44 +01:00
parent 1accfa38fb
commit dbf48b5440

@ -24,8 +24,8 @@ environment:
matrix: matrix:
# ------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------
# When builder is cmake, it remains one error reported below # When builder is cmake, it remains one exception reported below
# Once this problem fixed, the cmake builder will be operational # Once this problem fixed, the try/catch around the cmake builder can be removed
# #
# [ 1%] Generating pocomsg.h # [ 1%] Generating pocomsg.h
# cmake : MC: Compiling C:/projects/poco/Foundation/src/pocomsg.mc # cmake : MC: Compiling C:/projects/poco/Foundation/src/pocomsg.mc
@ -36,7 +36,7 @@ environment:
# + FullyQualifiedErrorId : NativeCommandError # + FullyQualifiedErrorId : NativeCommandError
# #
# Command executed with exception: MC: Compiling C:/projects/poco/Foundation/src/pocomsg.mc # Command executed with exception: MC: Compiling C:/projects/poco/Foundation/src/pocomsg.mc
# # -------------------------------------------------------------------------------------------
- builder: cmake - builder: cmake
vsver: 120 vsver: 120
# ------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------
@ -87,6 +87,7 @@ install:
choco install cmake choco install cmake
} }
- where cmake - where cmake
- where jom
- set - set
# chocolatey brokes jom, here's workaround # chocolatey brokes jom, here's workaround
@ -187,12 +188,14 @@ build_script:
if ($env:builder -eq "cmake") if ($env:builder -eq "cmake")
{ {
mkdir cmake-build | out-null;cd cmake-build; mkdir cmake-build | out-null;cd cmake-build;
cmake ../. -G"NMake Makefiles" -DENABLE_TESTS=ON -DENABLE_NETSSL=OFF -DENABLE_NETSSL_WIN=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_REDIS=OFF cmake ../. -G"NMake Makefiles" -DENABLE_SAMPLES=ON -DENABLE_TESTS=ON -DENABLE_NETSSL=OFF -DENABLE_NETSSL_WIN=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_REDIS=OFF
try { try {
$ErrorActionPreference = 'Continue';
cmake --build . --config $env:configuration cmake --build . --config $env:configuration
} catch { } catch {
Write-Warning "Oops: $_" Write-Warning "Oops: $_"
} }
$host.SetShouldExit(0);
} }
before_test: before_test: