mirror of
https://github.com/edgewall/trac.git
synced 2026-02-05 09:46:44 +01:00
git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.6-stable@17923 af82e41b-90c4-0310-8c96-b1721e28e2e2
35 lines
1.0 KiB
PowerShell
35 lines
1.0 KiB
PowerShell
$venvdir = "$($env:LocalAppData)\venv"
|
|
& python -m venv $venvdir
|
|
$python = "$venvdir\scripts\python.exe"
|
|
& "$venvdir\scripts\activate.ps1"
|
|
& $python -m pip install --upgrade pip
|
|
& $python -m pip install -r .github\requirements-minimum.txt
|
|
& $python -m pip list --format=freeze
|
|
|
|
& choco install -y --no-progress html-tidy
|
|
Get-ChildItem -Path "$($env:ProgramData)\chocolatey\lib\html-tidy\tools" `
|
|
-Filter '*.dll' -Recurse `
|
|
| Copy-Item -Destination "$venvdir\scripts" -Verbose
|
|
|
|
$env:PYTHONWARNINGS = 'default'
|
|
Set-Content -Path Makefile.cfg '.uri ='
|
|
& make.exe status Trac.egg-info
|
|
if ($LASTEXITCODE) {
|
|
Write-Error "'make.exe status Trac.egg-info' exited with $LASTEXITCODE"
|
|
exit 1
|
|
}
|
|
$rc = 0
|
|
& make.exe unit-test
|
|
if ($LASTEXITCODE) {
|
|
Write-Warning "'make.exe unit-test' exited with $LASTEXITCODE"
|
|
$rc = 1
|
|
}
|
|
if ($env:MATRIX_TESTS -eq 'functional') {
|
|
& make.exe functional-test testopts=-v
|
|
if ($LASTEXITCODE) {
|
|
Write-Warning "'make.exe functional-test testopts=-v' exited with $LASTEXITCODE"
|
|
$rc = 1
|
|
}
|
|
}
|
|
exit $rc
|