aboutsummaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2018-09-05 10:44:01 +1000
committerteor <teor@torproject.org>2018-09-05 13:51:12 +1000
commitd3a3ac013d44dadf335acc27adcec62abfb69dc8 (patch)
tree3f07abd1a7cd740d3fff6f98dcf02b90e5664eca /.appveyor.yml
parent90e038e7321deefb93b75fc95e6807e2d3482ca6 (diff)
downloadtor-d3a3ac013d44dadf335acc27adcec62abfb69dc8.tar.gz
tor-d3a3ac013d44dadf335acc27adcec62abfb69dc8.zip
Appveyor: tail config.log and cat test-suite.log after failed builds
Also zip the full logs, and upload them as build artifacts. Implements ticket 27430.
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 7cc86004bf..690f93e5b6 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -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
-