From cfe6c129b10a3efee2ff8b64a5cf2997014ec576 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Mon, 5 Dec 2022 22:15:01 +0000 Subject: [PATCH] ci: Define the CLANG_TIDY_OUTPUT variable in the clang-tidy job --- utils/tests/gitlab-ci-code-linting.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/tests/gitlab-ci-code-linting.yml b/utils/tests/gitlab-ci-code-linting.yml index 3fc2462a8..105b65cd1 100644 --- a/utils/tests/gitlab-ci-code-linting.yml +++ b/utils/tests/gitlab-ci-code-linting.yml @@ -19,6 +19,7 @@ clang-tidy: image: ubuntu:latest variables: MPI_CI: 1 + CLANG_TIDY_OUTPUT: clang-tidy-output.log before_script: - apt update - DEBIAN_FRONTEND=noninteractive apt install -y @@ -37,11 +38,11 @@ clang-tidy: - run-clang-tidy-14 -p cmake-cache/ -quiet 1> clang-tidy-errors.log 2> /dev/null - - (! egrep -A 3 "error:|warning:|note:" clang-tidy-errors.log) + - (! egrep -A 3 "error:|warning:|note:" $CLANG_TIDY_OUTPUT) - echo "No clang-tidy errors found" artifacts: paths: - - clang-tidy-errors.log + - $CLANG_TIDY_OUTPUT when: on_failure timeout: 3h