]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
appveyor: dump build logs on failure in VS2008 jobs
authorViktor Szakats <commit@vsz.me>
Fri, 14 Jun 2024 15:50:21 +0000 (17:50 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 15 Jun 2024 19:04:55 +0000 (21:04 +0200)
This seems to be the only way to see what actual toolchain commands were
run, and with what arguments.

Without `dos2unix`, `cat` output comes out empty.

Closes #13957

appveyor.sh

index 4f2b68ba6aef3e5d24896624dc0589708d02b698..1cd7f1851d05fa19dbe637c93036e88ecf807439 100644 (file)
@@ -62,7 +62,13 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then
     '-DCMAKE_INSTALL_PREFIX=C:/curl' \
     "-DCMAKE_BUILD_TYPE=${PRJ_CFG}"
   # shellcheck disable=SC2086
-  cmake --build _bld --config "${PRJ_CFG}" --parallel 2 -- ${BUILD_OPT:-}
+  if ! cmake --build _bld --config "${PRJ_CFG}" --parallel 2 -- ${BUILD_OPT:-}; then
+    if [ "${PRJ_GEN}" = 'Visual Studio 9 2008' ]; then
+      find . -name BuildLog.htm -exec dos2unix '{}' +
+      find . -name BuildLog.htm -exec cat '{}' +
+    fi
+    false
+  fi
   if [ "${SHARED}" = 'ON' ]; then
     cp -f -p _bld/lib/*.dll _bld/src/
   fi