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

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