Skip to content

Commit 46ece3e

Browse files
committed
AppVeyor: add verbose entering/exiting messages to PowerShell scripts
- Added Write-Host statements to all .ps1 scripts in .appveyor/ - This aids in debugging build logs to identify script boundaries. Assisted-by: Gemini
1 parent 63dd772 commit 46ece3e

7 files changed

Lines changed: 16 additions & 3 deletions

File tree

.appveyor/coverage_report.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
Write-Host "Entering .appveyor/coverage_report.ps1"
12
if ($env:COVERAGE -eq 1) {
23
& $env:SCONS_PYTHON_BIN -m coverage combine;
34
& $env:SCONS_PYTHON_BIN -m coverage report;
45
& $env:SCONS_PYTHON_BIN -m coverage xml -i -o coverage_xml.xml;
56
}
7+
Write-Host "Exiting .appveyor/coverage_report.ps1"

.appveyor/coverage_setup.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Write-Host "Entering .appveyor/coverage_setup.ps1"
12
if ($env:COVERAGE -eq 1) {
23
$env:COVERAGE_PROCESS_START = "$($env:APPVEYOR_BUILD_FOLDER)\.coveragerc";
34
$env:COVERAGE_FILE = "$($env:APPVEYOR_BUILD_FOLDER)\.coverage";
@@ -13,3 +14,4 @@ if ($env:COVERAGE -eq 1) {
1314
Write-Host "$($env:COVERAGE_PROCESS_START)";
1415
Get-Content -Path "$($env:COVERAGE_PROCESS_START)";
1516
}
17+
Write-Host "Exiting .appveyor/coverage_setup.ps1"

.appveyor/exclude_tests.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Write-Host "Entering .appveyor/exclude_tests.ps1"
12
New-Item -Name exclude_list.txt -ItemType File;
23

34
# exclude VS 10.0 because it hangs the testing until this is resolved:
@@ -6,3 +7,4 @@ $workaround_image = "Visual Studio 2015";
67
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq $workaround_image) {
78
Add-Content -Path 'exclude_list.txt' -Value 'test\MSVS\vs-10.0-exec.py';
89
}
10+
Write-Host "Exiting .appveyor/exclude_tests.ps1"

.appveyor/ignore_git_bins.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
Write-Host "Entering .appveyor/ignore_git_bins.ps1"
12
dir "C:\Program Files\Git\usr\bin\x*.exe";
23
if (Test-Path "C:\Program Files\Git\usr\bin\xsltproc.EXE" ) {
34
Remove-Item "C:\Program Files\Git\usr\bin\xsltproc.EXE" -ErrorAction Ignore;
45
}
56
dir "C:\Program Files\Git\usr\bin\x*.exe";
7+
Write-Host "Exiting .appveyor/ignore_git_bins.ps1"

.appveyor/install-cov.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
Write-Host "Entering .appveyor/install-cov.ps1"
12
if ($env:COVERAGE -eq 1) {
23
$pythonExe = $env:SCONS_PYTHON_BIN
34
$env:PYSITEDIR = & $pythonExe -c "import sys; print(sys.path[-1])"
45
& $pythonExe -m pip install -U --progress-bar off coverage codecov
56
}
7+
Write-Host "Exiting .appveyor/install-cov.ps1"

.appveyor/install.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Write-Host "Entering .appveyor/install.ps1"
12
$pythonExe = "C:\$($env:WINPYTHON)\python.exe"
23

34
# If the initial call to python --version fails, call "choco install %WINPYTHON%"
@@ -66,3 +67,4 @@ choco install --allow-empty-checksums dmd ldc swig vswhere xsltproc winflexbison
6667

6768
# Show environment variables
6869
Get-ChildItem Env: | Sort-Object Name
70+
Write-Host "Exiting .appveyor/install.ps1"

.appveyor/run_tests.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
1+
Write-Host "Entering .appveyor/run_tests.ps1"
32
Write-Host "COVERAGE: $env:COVERAGE"
43
Write-Host "SCONS_PYTHON_BIN: $env:SCONS_PYTHON_BIN"
54

@@ -9,10 +8,12 @@ if ($env:COVERAGE -eq 1) {
98
& "$env:SCONS_PYTHON_BIN" runtest.py -j 2 -t --exclude-list exclude_list.txt test/Actions
109
}
1110

12-
# Treat exit code 2 (some tests failed) as success for AppVeyor
11+
# Treat exit code 2 (some tests failed) as success for AppVeyor
1312
# as per original configuration.
1413
if ($LastExitCode -eq 2 -or $LastExitCode -eq 0) {
14+
Write-Host "Exiting .appveyor/run_tests.ps1"
1515
exit 0
1616
} else {
17+
Write-Host "Exiting .appveyor/run_tests.ps1"
1718
exit $LastExitCode
1819
}

0 commit comments

Comments
 (0)