Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0c0c52
commit 227f271
Showing
3 changed files
with
28 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
# Script to set up tests on AppVeyor Windows. | ||
|
||
$Dependencies = "PyYAML artifacts cffi cryptography dfdatetime dfimagetools dfvfs dfwinreg dtfabric idna libbde libcreg libewf libexe libfsapfs libfsext libfsfat libfshfs libfsntfs libfsxfs libfvde libfwnt libluksde libmodi libphdi libqcow libregf libsigscan libsmdev libsmraw libvhdi libvmdk libvsgpt libvshadow libvslvm libwrc pytsk3 xattr" | ||
$Dependencies = ${Dependencies} -split " " | ||
|
||
$Output = Invoke-Expression -Command "git clone https://github.com/log2timeline/l2tdevtools.git ..\l2tdevtools 2>&1" | ||
Write-Host (${Output} | Out-String) | ||
|
||
If ($env:APPVEYOR_REPO_BRANCH -eq "main") | ||
{ | ||
$Track = "stable" | ||
} | ||
Else | ||
If ($Dependencies.Length -gt 0) | ||
{ | ||
$Track = $env:APPVEYOR_REPO_BRANCH | ||
} | ||
New-Item -ItemType "directory" -Name "dependencies" | ||
$Dependencies = ${Dependencies} -split " " | ||
|
||
$env:PYTHONPATH = "..\l2tdevtools" | ||
$Output = Invoke-Expression -Command "git clone https://github.com/log2timeline/l2tdevtools.git ..\l2tdevtools 2>&1 | %{ '$_' }" | ||
Write-Host (${Output} | Out-String) | ||
|
||
$Output = Invoke-Expression -Command "& '${env:PYTHON}\python.exe' ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type ${env:MACHINE_TYPE} --msi-targetdir ${env:PYTHON} --track ${env:L2TBINARIES_TRACK} ${Dependencies} 2>&1" | ||
Write-Host (${Output} | Out-String) | ||
If ($env:APPVEYOR_REPO_BRANCH -eq "main") | ||
{ | ||
$Track = "stable" | ||
} | ||
Else | ||
{ | ||
$Track = $env:APPVEYOR_REPO_BRANCH | ||
} | ||
New-Item -ItemType "directory" -Name "dependencies" | ||
|
||
$env:PYTHONPATH = "..\l2tdevtools" | ||
|
||
$Output = Invoke-Expression -Command "& '${env:PYTHON}\python.exe' ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type ${env:MACHINE_TYPE} --msi-targetdir ${env:PYTHON} --track ${env:L2TBINARIES_TRACK} ${Dependencies} 2>&1" | ||
Write-Host (${Output} | Out-String) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters