summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-04-05 14:25:04 -0400
committerBrad King <brad.king@kitware.com>2023-04-05 14:27:49 -0400
commit967456423b8bcc4f833c897140339e62ceb7bcb5 (patch)
tree8b89d62b6d3d73984770af9e8e6e1904be7fa60d /.gitlab
parent3532823dd740ea876e0362f84be9c97405e19205 (diff)
downloadcmake-967456423b8bcc4f833c897140339e62ceb7bcb5.tar.gz
ci: Factor out initial setup script for Windows external test jobs
On Linux and macOS we use the "before script" for both build and test jobs. On Windows we only want a subset of it, but give it a dedicated helper for consistency.
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/os-windows.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.gitlab/os-windows.yml b/.gitlab/os-windows.yml
index aa817d0cf1..c7ee28b3ef 100644
--- a/.gitlab/os-windows.yml
+++ b/.gitlab/os-windows.yml
@@ -349,6 +349,9 @@
- . .gitlab/ci/qt-env.ps1
- . .gitlab/ci/python-env.ps1
+.before_script_windows_external: &before_script_windows_external
+ - . .gitlab/ci/env.ps1
+
.cmake_build_windows:
stage: build
@@ -381,7 +384,7 @@
stage: test-ext
script:
- - . .gitlab/ci/env.ps1
+ - *before_script_windows_external
- build/install/bin/ctest --output-on-failure -V -S .gitlab/ci/ctest_standalone.cmake
interruptible: true