From 3e415c06b517a3bdf11ef9dfa7b9b7ae916e8ac4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Thu, 23 Nov 2023 12:27:05 +0100
Subject: [PATCH] CI: enable FF_ENABLE_BASH_EXIT_CODE_CHECK to avoid
 unintuitive behaviour with && operator

---
 .gitlab-ci.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8b013445..61995706 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,8 @@ variables:
   MINGW32_BOOST_VERSION: 1.81.0-7
   MINGW64_BOOST_VERSION: 1.81.0-7
   WGET_OPTIONS: '--no-verbose --no-use-server-timestamps --retry-connrefused --retry-on-host-error'
+  # To ensure that "false && true" fails, see https://gitlab.com/gitlab-org/gitlab-runner/-/issues/25394#note_412609647
+  FF_ENABLE_BASH_EXIT_CODE_CHECK: 'true'
 
 build_linux_x86_64:
   stage: build
-- 
GitLab