From fa865f379290903f52aaa40801c692a95baacfbe Mon Sep 17 00:00:00 2001 From: kongr45gpen <electrovesta@gmail.com> Date: Sat, 10 Aug 2019 13:39:07 +0300 Subject: [PATCH] Make sure that clang-tidy fails --- .gitlab-ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54c80cca..bbf45ab0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,14 @@ stages: - test - deploy +before_script: + - apt-get update -qq && apt-get -qq -y install python3-pip && python3 -m pip install --upgrade pip + - python3 -V + - python3 -m pip --version + - g++ --version + - cat /etc/*-release + - python3 -m pip install gcovr + build: stage: build variables: @@ -71,7 +79,8 @@ clang-tidy: GIT_SUBMODULE_STRATEGY: normal TERM: xterm-color script: - - ./ci/clang-tidy.sh + # Running with `script` to give clang a tty so that it outputs colours + - script -e -c "bash -x ci/clang-tidy.sh" pages: stage: deploy -- GitLab