ci: De-duplicate Windows test script for Borland jobs

Move job-specific setup to environment scripts.
This commit is contained in:
Brad King
2023-04-05 10:43:03 -04:00
parent 8af9a52d3e
commit e2cf20e58c
5 changed files with 7 additions and 14 deletions

View File

@@ -1079,7 +1079,7 @@ t:windows-vs2022-x64-jom:
t:windows-borland5.5:
extends:
- .windows_borland5.5
- .cmake_test_windows_borland
- .cmake_test_windows_external
- .windows_x86_64_tags_concurrent
- .cmake_junit_artifacts
- .run_dependent
@@ -1093,7 +1093,7 @@ t:windows-borland5.5:
t:windows-borland5.8:
extends:
- .windows_borland5.8
- .cmake_test_windows_borland
- .cmake_test_windows_external
- .windows_x86_64_tags_concurrent
- .cmake_junit_artifacts
- .run_dependent

3
.gitlab/ci/borland-env.ps1 Executable file
View File

@@ -0,0 +1,3 @@
Invoke-Expression -Command .gitlab/ci/borland.ps1
$pwdpath = $pwd.Path
Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\bcc\bin;$env:PATH"

View File

@@ -0,0 +1 @@
. .gitlab/ci/borland-env.ps1

View File

@@ -0,0 +1 @@
. .gitlab/ci/borland-env.ps1

View File

@@ -408,15 +408,3 @@
- build/install/bin/ctest --output-on-failure -V -S .gitlab/ci/ctest_standalone.cmake
interruptible: true
.cmake_test_windows_borland:
stage: test-ext
script:
- . .gitlab/ci/env.ps1
- Invoke-Expression -Command .gitlab/ci/borland.ps1
- $pwdpath = $pwd.Path
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\bcc\bin;$env:PATH"
- build/install/bin/ctest --output-on-failure -V -S .gitlab/ci/ctest_standalone.cmake
interruptible: true