From bb3501abdc265f98c968f399ec1cee45a5c1660f Mon Sep 17 00:00:00 2001
From: kongr45gpen <electrovesta@gmail.com>
Date: Fri, 5 Apr 2019 03:08:20 +0300
Subject: [PATCH] Make sure that clang-tidy errors break the build

---
 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 91b67e1a..43881eb9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,7 +38,7 @@ tests:
 cppcheck:
   stage: build
   before_script:
-    - echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list  
+    - echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list
     - apt-get update -qq && apt-get -t testing install -y cppcheck
     - cppcheck --version
   script:
@@ -48,7 +48,7 @@ cppcheck-misra:
   stage: build
   before_script:
   # install cppcheck from the testing repos in order to get the latest version
-    - echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list  
+    - echo deb http://deb.debian.org/debian testing main > /etc/apt/sources.list
     - apt-get update -qq && apt-get -t testing install -y cppcheck && apt-get -t testing install -y python3
     - cppcheck --version
   script:
@@ -75,4 +75,4 @@ clang-tidy:
     - clang-tidy-7 --version
   script:
     # Running with `script` to give clang a tty so that it outputs colours
-    - script -c "bash -x ci/clang-tidy.sh"
+    - script -ec "bash -x ci/clang-tidy.sh"
-- 
GitLab