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.
This commit is contained in:
Brad King
2023-04-05 14:25:04 -04:00
parent 3532823dd7
commit 967456423b

View File

@@ -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