From 6e4faa976117a6e411b02e99cbf2c836a336e9fb Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Wed, 2 Jan 2019 13:52:10 +0100 Subject: run clang-tidy earlier in CI --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81773bdf9..5811efd70 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -98,13 +98,15 @@ codeprotect: - if [[ -s forbidden ]]; then echo "This commit modifies files that are in an dependency library. Make sure you update upstream first, *then* force the merge in Inkscape."; false; fi clangtidy:linux: - stage: test - dependencies: - - inkscape:linux + stage: build except: - schedules script: - - cd build && run-clang-tidy -fix -header-filter='.*' && git checkout ../src/3rdparty/ ../src/2geom/ + - mkdir -p build && cd build + - cmake .. -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=$PWD/install_dir/ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + - run-clang-tidy -fix -header-filter='.*' && git checkout ../src/3rdparty/ ../src/2geom/ + - git diff | tee clang_tidy_diff + - if [[ -s clang_tidy_diff ]]; then false; fi source-doc: stage: build -- cgit v1.2.3