summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-11 16:43:56 (GMT)
committerBrad King <brad.king@kitware.com>2022-11-11 20:05:30 (GMT)
commit1ccffcf0ea1b0d49fe723bc7d08083f5767c1e20 (patch)
tree2f1ec2cbd31272601413d9f948469bac2f204c01 /.gitlab/ci
parent781303c0e263b2497829a8f7c2160d223faa8509 (diff)
downloadCMake-1ccffcf0ea1b0d49fe723bc7d08083f5767c1e20.zip
CMake-1ccffcf0ea1b0d49fe723bc7d08083f5767c1e20.tar.gz
CMake-1ccffcf0ea1b0d49fe723bc7d08083f5767c1e20.tar.bz2
ci: Factor out helper to load python into environment on Windows
Diffstat (limited to '.gitlab/ci')
-rwxr-xr-x.gitlab/ci/python-env.ps14
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab/ci/python-env.ps1 b/.gitlab/ci/python-env.ps1
new file mode 100755
index 0000000..4e897d8
--- /dev/null
+++ b/.gitlab/ci/python-env.ps1
@@ -0,0 +1,4 @@
+$pwdpath = $pwd.Path
+cmake -P .gitlab/ci/download_python3.cmake
+Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\python3;$env:PATH"
+python --version