aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2020-01-15 11:39:26 +0100
committerAndreas Schneider <asn@cryptomilk.org>2020-01-20 14:16:20 +0100
commit7f5e14698fe16443f2d85a71367899a6a49dd44e (patch)
tree5aa99cfcebcbee3c3bf12a96d0a77e4b3593d50a /.gitlab-ci.yml
parent1fe5f03fff4def5e901508d987aafb9add067f2b (diff)
downloadlibssh-7f5e14698fe16443f2d85a71367899a6a49dd44e.tar.gz
libssh-7f5e14698fe16443f2d85a71367899a6a49dd44e.tar.xz
libssh-7f5e14698fe16443f2d85a71367899a6a49dd44e.zip
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>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 300b666d..3a5416e1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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