summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-04-05 10:44:35 -0400
committerBrad King <brad.king@kitware.com>2023-04-05 10:47:32 -0400
commit3f1a1bad76c7ab7f5ebb8757fe2902607d167492 (patch)
treef65d18f5d5feb98892fff74f74a570b3219728f3 /.gitlab
parente2cf20e58c1e5c96c977d647460cdcce92abeb57 (diff)
downloadcmake-3f1a1bad76c7ab7f5ebb8757fe2902607d167492.tar.gz
ci: De-duplicate Windows test script for JOM job
Move job-specific setup to an environment script.
Diffstat (limited to '.gitlab')
-rwxr-xr-x.gitlab/ci/env_windows_vs2022_x64_jom.ps14
-rw-r--r--.gitlab/os-windows.yml13
2 files changed, 4 insertions, 13 deletions
diff --git a/.gitlab/ci/env_windows_vs2022_x64_jom.ps1 b/.gitlab/ci/env_windows_vs2022_x64_jom.ps1
new file mode 100755
index 0000000000..c933421d3a
--- /dev/null
+++ b/.gitlab/ci/env_windows_vs2022_x64_jom.ps1
@@ -0,0 +1,4 @@
+Invoke-Expression -Command .gitlab/ci/jom.ps1
+$pwdpath = $pwd.Path
+Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\jom;$env:PATH"
+Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1
diff --git a/.gitlab/os-windows.yml b/.gitlab/os-windows.yml
index b932b7431a..b915d4bf87 100644
--- a/.gitlab/os-windows.yml
+++ b/.gitlab/os-windows.yml
@@ -395,16 +395,3 @@
- build/install/bin/ctest --output-on-failure -V -S .gitlab/ci/ctest_standalone.cmake
interruptible: true
-
-.cmake_test_windows_jom:
- stage: test-ext
-
- script:
- - . .gitlab/ci/env.ps1
- - Invoke-Expression -Command .gitlab/ci/jom.ps1
- - $pwdpath = $pwd.Path
- - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\jom;$env:PATH"
- - Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1
- - build/install/bin/ctest --output-on-failure -V -S .gitlab/ci/ctest_standalone.cmake
-
- interruptible: true