gitlab-ci: Create obj directory for Windows builds

The obj directory is not created anymore when the git repository is
cloned.  Create the directory during the build.

Also set the variable "ErrorActionPreference: STOP" to make the build to
fail if an error occurs.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Anderson Toshiyuki Sasaki
2020-01-15 11:39:26 +01:00
committed by Andreas Schneider
parent 1fe5f03fff
commit 7f5e14698f

View File

@@ -378,6 +378,8 @@ freebsd/x86_64:
# Visual Studio builds #
###############################################################################
.vs:
variables:
ErrorActionPreference: STOP
script:
- cmake --build .
- ctest --output-on-failure
@@ -401,7 +403,7 @@ visualstudio/x86_64:
extends: .vs
before_script:
- $env:VCPKG_DEFAULT_TRIPLET="x64-windows"
- cd obj
- mkdir -p obj; if ($?) {cd obj}; if (! $?) {exit 1}
- cmake
-A x64
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_TOOLCHAIN_FILE"
@@ -413,7 +415,7 @@ visualstudio/x86:
extends: .vs
before_script:
- $env:VCPKG_DEFAULT_TRIPLET="x86-windows"
- cd obj
- mkdir -p obj; if ($?) {cd obj}; if (! $?) {exit 1}
- cmake
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_TOOLCHAIN_FILE"
-DPICKY_DEVELOPER=ON