mirror of
https://github.com/Relintai/scons_gd.git
synced 2024-11-22 11:18:11 +01:00
14 lines
832 B
PowerShell
14 lines
832 B
PowerShell
if ($env:COVERAGE -eq 1) {
|
|
$env:COVERAGE_PROCESS_START = "$($env:APPVEYOR_BUILD_FOLDER)\.coveragerc";
|
|
$env:COVERAGE_FILE = "$($env:APPVEYOR_BUILD_FOLDER)\.coverage";
|
|
New-Item -ItemType Directory -Force -Path "$($env:PYSITEDIR)";
|
|
|
|
(Get-Content -path .coverage_templates\.coveragerc.template -Raw) -replace '\$PWD',"$((Get-Location) -replace '\\', '/')" | Set-Content -Path "$($env:COVERAGE_PROCESS_START)";
|
|
(Get-Content -path .coverage_templates\sitecustomize.py.template -Raw) -replace '\$PWD',"$((Get-Location) -replace '\\', '/')" | Set-Content -Path "$($env:PYSITEDIR)\sitecustomize.py";
|
|
|
|
Write-Host "$($env:PYSITEDIR)\sitecustomize.py";
|
|
Get-Content -Path "$($env:PYSITEDIR)\sitecustomize.py";
|
|
Write-Host "$($env:COVERAGE_PROCESS_START)";
|
|
Get-Content -Path "$($env:COVERAGE_PROCESS_START)";
|
|
}
|