From a307022200dd0c883784be7b24a268a75711b04d Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Wed, 23 Oct 2019 14:14:43 +0200
Subject: [PATCH] CI: add check for BUILD_RESULT  before continuation

---
 .dd4hep-ci.d/compile_and_test.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.dd4hep-ci.d/compile_and_test.sh b/.dd4hep-ci.d/compile_and_test.sh
index 9ffd6c911..2e9580837 100755
--- a/.dd4hep-ci.d/compile_and_test.sh
+++ b/.dd4hep-ci.d/compile_and_test.sh
@@ -24,6 +24,7 @@ if [[ "${SHARED}" == "OFF" ]]; then
     exit ${BUILD_RESULT}
 fi
 
+test ${BUILD_RESULT} -eq 0 && \
 ninja install && \
 . ../bin/thisdd4hep.sh && \
 ctest --output-on-failure -j4 && \
-- 
GitLab