Debian Codegraph @

config/appveyor/install.ps1

raw
1 # Script to set up tests on AppVeyor Windows.
2
3 $Dependencies = "PyYAML"
4
5 If ($Dependencies.Length -gt 0)
6 {
7 $Dependencies = ${Dependencies} -split " "
8
9 $Output = Invoke-Expression -Command "git clone https://github.com/log2timeline/l2tdevtools.git ..\l2tdevtools 2>&1" | %{ "$_" }
10 Write-Host (${Output} | Out-String)
11
12 If ($env:APPVEYOR_REPO_BRANCH -eq "main")
13 {
14 $Track = "stable"
15 }
16 Else
17 {
18 $Track = $env:APPVEYOR_REPO_BRANCH
19 }
20 New-Item -ItemType "directory" -Name "dependencies"
21
22 $env:PYTHONPATH = "..\l2tdevtools"
23
24 $Output = Invoke-Expression -Command "& '${env:PYTHON}\python.exe' ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type ${env:MACHINE_TYPE} --track ${env:L2TBINARIES_TRACK} ${Dependencies} 2>&1" | %{ "$_" }
25 Write-Host (${Output} | Out-String)
26 }
27