diff --git a/.dd4hep-ci.d/compile_and_test.sh b/.dd4hep-ci.d/compile_and_test.sh
index 9ffd6c911de317ac7ac9a8e2d62ed31ea5af25a5..2e9580837276d9a027f29ae5606e637bcabb350d 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 && \