diff options
author | Brad King <brad.king@kitware.com> | 2023-04-05 14:44:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-05 14:47:32 (GMT) |
commit | 3f1a1bad76c7ab7f5ebb8757fe2902607d167492 (patch) | |
tree | f65d18f5d5feb98892fff74f74a570b3219728f3 /.gitlab | |
parent | e2cf20e58c1e5c96c977d647460cdcce92abeb57 (diff) | |
download | CMake-3f1a1bad76c7ab7f5ebb8757fe2902607d167492.zip CMake-3f1a1bad76c7ab7f5ebb8757fe2902607d167492.tar.gz CMake-3f1a1bad76c7ab7f5ebb8757fe2902607d167492.tar.bz2 |
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.ps1 | 4 | ||||
-rw-r--r-- | .gitlab/os-windows.yml | 13 |
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 0000000..c933421 --- /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 b932b74..b915d4b 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 |