summaryrefslogtreecommitdiff
path: root/.gitlab/ci/openwatcom-env.ps1
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-04-05 10:38:06 -0400
committerBrad King <brad.king@kitware.com>2023-04-05 10:46:15 -0400
commit430aa379d41ee3890957d070a0105468369ab755 (patch)
treee2a38b7c96e8529e8a4e6f953d87b39b496b5845 /.gitlab/ci/openwatcom-env.ps1
parenteb2bdbd3013f482c4db5c599c1c528ad0e7eb92d (diff)
downloadcmake-430aa379d41ee3890957d070a0105468369ab755.tar.gz
ci: De-duplicate Windows test script for OpenWatcom job
Move job-specific setup to an environment script.
Diffstat (limited to '.gitlab/ci/openwatcom-env.ps1')
-rwxr-xr-x.gitlab/ci/openwatcom-env.ps17
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab/ci/openwatcom-env.ps1 b/.gitlab/ci/openwatcom-env.ps1
new file mode 100755
index 0000000000..14ea523028
--- /dev/null
+++ b/.gitlab/ci/openwatcom-env.ps1
@@ -0,0 +1,7 @@
+Invoke-Expression -Command .gitlab/ci/openwatcom.ps1
+$pwdpath = $pwd.Path
+Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\watcom\binnt;$pwdpath\.gitlab\watcom\binw;$env:PATH"
+Set-Item -Force -Path "env:INCLUDE" -Value "$pwdpath\.gitlab\watcom\h;$pwdpath\.gitlab\watcom\h\nt"
+Set-Item -Force -Path "env:EDPATH" -Value "$pwdpath\.gitlab\watcom\eddat"
+Set-Item -Force -Path "env:WATCOM" -Value "$pwdpath\.gitlab\watcom"
+Set-Item -Force -Path "env:WLINKTMP" -Value "."