blob: 0906cb9629907405446c6b93335f3da1571f816e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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)";
}
|