]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Appveyor: tail config.log and cat test-suite.log after failed builds
authorteor <teor@torproject.org>
Wed, 5 Sep 2018 00:44:01 +0000 (10:44 +1000)
committerteor <teor@torproject.org>
Wed, 5 Sep 2018 03:51:12 +0000 (13:51 +1000)
Also zip the full logs, and upload them as build artifacts.

Implements ticket 27430.

.appveyor.yml
changes/ticket27430 [new file with mode: 0644]

index 7cc86004bf5a58ec498894d1f60042b15f5cef2a..690f93e5b66c9575d456a86d2d7a2668b8070e17 100644 (file)
@@ -57,5 +57,16 @@ test_script:
     }\r
 \r
 on_failure:\r
+- ps: >-\r
+    if ($env:compiler -eq "mingw") {\r
+            $oldpath = ${env:Path} -split ';'\r
+            $buildpath = @("C:\msys64\usr\bin") + $oldpath\r
+            $env:Path = @($buildpath) -join ';'\r
+            Set-Location "${env:build}"\r
+            Execute-Bash "7z a logs.zip config.log || true"\r
+            Execute-Bash "7z a logs.zip test-suite.log || true"\r
+            Execute-Bash "appveyor PushArtifact logs.zip || true"\r
+            Execute-Bash "tail -1000 config.log || true"\r
+            Execute-Bash "cat test-suite.log || true"\r
+    }\r
 - cmd: C:\Python27\python.exe %APPVEYOR_BUILD_FOLDER%\scripts\test\appveyor-irc-notify.py irc.oftc.net:6697 tor-ci failure\r
-\r
diff --git a/changes/ticket27430 b/changes/ticket27430
new file mode 100644 (file)
index 0000000..4e016e9
--- /dev/null
@@ -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.