mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Appveyor using build cache for ProxSpace
This commit is contained in:
parent
1b0875dd78
commit
064aa6775d
1 changed files with 19 additions and 12 deletions
31
appveyor.yml
31
appveyor.yml
|
@ -1,6 +1,8 @@
|
||||||
version: 3.0.1.{build}
|
version: 3.0.1.{build}
|
||||||
image: Visual Studio 2019
|
image: Visual Studio 2019
|
||||||
clone_folder: C:\ProxSpace\pm3\proxmark
|
clone_folder: C:\ProxSpace\pm3\proxmark
|
||||||
|
cache:
|
||||||
|
- C:\cache
|
||||||
environment:
|
environment:
|
||||||
proxspace_url: https://github.com/Gator96100/ProxSpace/archive/master.zip
|
proxspace_url: https://github.com/Gator96100/ProxSpace/archive/master.zip
|
||||||
proxspace_zip_file: \proxspace.zip
|
proxspace_zip_file: \proxspace.zip
|
||||||
|
@ -101,17 +103,7 @@ clone_script:
|
||||||
Write-Host "[ OK ]" -ForegroundColor Green
|
Write-Host "[ OK ]" -ForegroundColor Green
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "ProxSpace: Removing folder..." -NoNewLine
|
|
||||||
|
|
||||||
$PSInstallTime=[System.Environment]::TickCount
|
$PSInstallTime=[System.Environment]::TickCount
|
||||||
|
|
||||||
cd \
|
|
||||||
|
|
||||||
Remove-Item -Recurse -Force -Path $env:proxspace_path
|
|
||||||
|
|
||||||
Write-Host "[ OK ]" -ForegroundColor Green
|
|
||||||
|
|
||||||
Receive-Job -Job $WSLjob
|
|
||||||
|
|
||||||
Write-Host "ProxSpace: downloading..." -NoNewLine
|
Write-Host "ProxSpace: downloading..." -NoNewLine
|
||||||
|
|
||||||
|
@ -137,6 +129,12 @@ clone_script:
|
||||||
|
|
||||||
Get-ChildItem -Path "\$env:proxspace_zip_folder_name" | Rename-Item -NewName (Split-Path $env:proxspace_path -Leaf)
|
Get-ChildItem -Path "\$env:proxspace_zip_folder_name" | Rename-Item -NewName (Split-Path $env:proxspace_path -Leaf)
|
||||||
|
|
||||||
|
Write-Host "[ OK ]" -ForegroundColor Gree
|
||||||
|
|
||||||
|
Write-Host "ProxSpace: move cache..." -NoNewLine
|
||||||
|
|
||||||
|
Move-Item -Path "C:\cache" -Destination "$env:proxspace_path\msys2\var\chache"
|
||||||
|
|
||||||
Write-Host "[ OK ]" -ForegroundColor Gree
|
Write-Host "[ OK ]" -ForegroundColor Gree
|
||||||
|
|
||||||
ExecUpdate "ProxSpace: initial msys2 startup..." $true
|
ExecUpdate "ProxSpace: initial msys2 startup..." $true
|
||||||
|
@ -152,8 +150,6 @@ clone_script:
|
||||||
|
|
||||||
GitClone "ProxSpace: Cloning repository <$env:appveyor_repo_name> to $env:appveyor_build_folder ..." $env:appveyor_build_folder
|
GitClone "ProxSpace: Cloning repository <$env:appveyor_repo_name> to $env:appveyor_build_folder ..." $env:appveyor_build_folder
|
||||||
|
|
||||||
Receive-Job -Wait -Job $WSLjob
|
|
||||||
|
|
||||||
GitClone "WSL: Cloning repository <$env:appveyor_repo_name> to $env:wsl_git_path ..." $env:wsl_git_path
|
GitClone "WSL: Cloning repository <$env:appveyor_repo_name> to $env:wsl_git_path ..." $env:wsl_git_path
|
||||||
|
|
||||||
|
|
||||||
|
@ -202,6 +198,9 @@ build_script:
|
||||||
throw "Tests error."
|
throw "Tests error."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#WSL: wait for installation to finish
|
||||||
|
Receive-Job -Wait -Name WSLInstall
|
||||||
|
|
||||||
#Windows Subsystem for Linux (WSL)
|
#Windows Subsystem for Linux (WSL)
|
||||||
Write-Host "---------- WSL make ----------" -ForegroundColor Yellow
|
Write-Host "---------- WSL make ----------" -ForegroundColor Yellow
|
||||||
|
@ -276,6 +275,14 @@ build_script:
|
||||||
|
|
||||||
ExecCheck "PS cmake Tests"
|
ExecCheck "PS cmake Tests"
|
||||||
|
|
||||||
|
Write-Host "ProxSpace: create new cache..." -NoNewLine
|
||||||
|
|
||||||
|
ExecMinGWCmd 'yes | pacman -Sc > /dev/null 2>&1'
|
||||||
|
|
||||||
|
Move-Item -Path "$env:proxspace_path\msys2\var\chache" -Destination "C:\cache"
|
||||||
|
|
||||||
|
Write-Host "[ OK ]" -ForegroundColor Gree
|
||||||
|
|
||||||
Receive-Job -Wait -Job $WSLjob
|
Receive-Job -Wait -Job $WSLjob
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue