1 if ($env:COVERAGE
-eq
1) {
2 $env:COVERAGE_PROCESS_START
= "$($env:APPVEYOR_BUILD_FOLDER)\.coveragerc";
3 $env:COVERAGE_FILE
= "$($env:APPVEYOR_BUILD_FOLDER)\.coverage";
4 New-Item -ItemType Directory
-Force
-Path
"$($env:PYSITEDIR)";
6 (Get-Content -path
.coverage_templates\
.coveragerc
.template
-Raw
) -replace
'\$PWD',"$((Get-Location) -replace '\\', '/')" | Set-Content -Path
"$($env:COVERAGE_PROCESS_START)";
7 (Get-Content -path
.coverage_templates\sitecustomize
.py
.template
-Raw
) -replace
'\$PWD',"$((Get-Location) -replace '\\', '/')" | Set-Content -Path
"$($env:PYSITEDIR)\sitecustomize.py";
9 Write-Host "$($env:PYSITEDIR)\sitecustomize.py";
10 Get-Content -Path
"$($env:PYSITEDIR)\sitecustomize.py";
11 Write-Host "$($env:COVERAGE_PROCESS_START)";
12 Get-Content -Path
"$($env:COVERAGE_PROCESS_START)";