From 84b0448e392db038e28cb1d556ace727a2ceddd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Mon, 17 Sep 2018 17:16:11 +0200 Subject: [PATCH] ci: Print the toolchain database when CI fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI is failing sporadically with a corrupted ToolchainCapabilityDatabase.cmake file. To gain insight into how the file is corrupted we print it to the log. Signed-off-by: Sebastian Bøe --- .shippable.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.shippable.yml b/.shippable.yml index 7d1cf0c701d..993689971fb 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -72,6 +72,11 @@ build: - rm test_file.txt - ccache -s on_failure: + - > + if [ -f "$HOME/.cache/zephyr/ToolchainCapabilityDatabase.cmake" ]; then + echo "Dumping the capability database in case we are affected by #9992" + cat $HOME/.cache/zephyr/ToolchainCapabilityDatabase.cmake + fi; - rm -rf ccache $HOME/.cache/zephyr - mkdir -p shippable/testresults - mkdir -p shippable/codecoverage