Skip to content
Snippets Groups Projects
Commit 45b3ddac authored by calrama's avatar calrama
Browse files

windows: Update Library.ps1 name, location, and contents

parent 830c5693
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl ...@@ -20,7 +20,7 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl
choco install -y python --version 3.7.1; \ choco install -y python --version 3.7.1; \
$env:PATH = "\"$([Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::User));$([Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine))\""; \ $env:PATH = "\"$([Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::User));$([Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine))\""; \
python -m pip --no-cache-dir install --no-warn-script-location wheel python -m pip --no-cache-dir install --no-warn-script-location wheel
COPY Library.ps1 C:/Library.ps1 COPY Profile.ps1 C:/Users/ContainerAdministrator/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1
COPY qtifwsilent.qs C:/qtifwsilent.qs COPY qtifwsilent.qs C:/qtifwsilent.qs
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
......
...@@ -26,3 +26,21 @@ function Must-Run { ...@@ -26,3 +26,21 @@ function Must-Run {
Exit(1) Exit(1)
} }
} }
#
# Fetches GitLab CI job artifacts
#
function GitLab-Fetch-Artifacts {
& curl.exe -o artifacts.zip --header "JOB-TOKEN: $CI_JOB_TOKEN" "https://git.imp.fu-berlin.de/api/v4/projects/$($args[0])/jobs/artifacts/$($args[1])/download?job=$($args[2])"
7z e artifacts.zip; Remove-Item -Force artifacts.zip
}
#
# Sets up a CMake package for find_package from a tarball
#
function CMake-Integrate-Package {
$name = $args[0]
7z e $name-*.tar.xz; Remove-Item -Force $name-*.tar.xz
7z x $name-*.tar; Remove-Item -Force $name-*.tar
[Environment]::SetEnvironmentVariable("${name}_ROOT", "$(resolve-path $name-*)")
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment