From 2f52f4703d693cabdb79b1108cf7c802c92ce752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Fri, 28 Sep 2018 12:43:51 +0200 Subject: [PATCH 1/3] get debug information from bash --- .appveyor.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.appveyor.sh b/.appveyor.sh index d14530b..1c28532 100755 --- a/.appveyor.sh +++ b/.appveyor.sh @@ -1,7 +1,8 @@ +set -x cd ${APPVEYOR_BUILD_FOLDER} git submodule update --init --recursive mkdir -p build cd build export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" -exec sh -c "cmake -G\"MSYS Makefiles\" -DCMAKE_INSTALL_PREFIX=/mingw64 -DBUILD_TESTING=1 .. && make && make test" +exec bash -c "set -x && cmake -G\"MSYS Makefiles\" -DCMAKE_INSTALL_PREFIX=/mingw64 -DBUILD_TESTING=1 .. && make && make test" From a2116b12ed7cb40b28e98f209eddf76167032eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Fri, 28 Sep 2018 12:44:52 +0200 Subject: [PATCH 2/3] exit if cd fails --- .appveyor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.appveyor.sh b/.appveyor.sh index 1c28532..e508ba2 100755 --- a/.appveyor.sh +++ b/.appveyor.sh @@ -1,8 +1,8 @@ set -x -cd ${APPVEYOR_BUILD_FOLDER} +cd "${APPVEYOR_BUILD_FOLDER}" || exit 1 git submodule update --init --recursive mkdir -p build -cd build +cd build || exit 1 export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" exec bash -c "set -x && cmake -G\"MSYS Makefiles\" -DCMAKE_INSTALL_PREFIX=/mingw64 -DBUILD_TESTING=1 .. && make && make test" From 75760bb01693e244be7aceabdccdebcb41d9304d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Fri, 28 Sep 2018 12:45:04 +0200 Subject: [PATCH 3/3] add shebang --- .appveyor.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.appveyor.sh b/.appveyor.sh index e508ba2..5712826 100755 --- a/.appveyor.sh +++ b/.appveyor.sh @@ -1,3 +1,4 @@ +#!/bin/bash set -x cd "${APPVEYOR_BUILD_FOLDER}" || exit 1 git submodule update --init --recursive