mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user