Skip to content

Commit

Permalink
Appveyor: tail config.log and cat test-suite.log after failed builds
Browse files Browse the repository at this point in the history
Also zip the full logs, and upload them as build artifacts.

Implements ticket 27430.
  • Loading branch information
teor2345 committed Sep 5, 2018
1 parent 90e038e commit d3a3ac0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,16 @@ test_script:
}
on_failure:
- ps: >-
if ($env:compiler -eq "mingw") {
$oldpath = ${env:Path} -split ';'
$buildpath = @("C:\msys64\usr\bin") + $oldpath
$env:Path = @($buildpath) -join ';'
Set-Location "${env:build}"
Execute-Bash "7z a logs.zip config.log || true"
Execute-Bash "7z a logs.zip test-suite.log || true"
Execute-Bash "appveyor PushArtifact logs.zip || true"
Execute-Bash "tail -1000 config.log || true"
Execute-Bash "cat test-suite.log || true"
}
- cmd: C:\Python27\python.exe %APPVEYOR_BUILD_FOLDER%\scripts\test\appveyor-irc-notify.py irc.oftc.net:6697 tor-ci failure

4 changes: 4 additions & 0 deletions changes/ticket27430
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
o Minor features (continuous integration):
- Show config.log and test-suite.log after failed Appveyor builds.
Also upload the zipped full logs as a build artifact.
Implements ticket 27430.

0 comments on commit d3a3ac0

Please sign in to comment.