diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 12:52:10 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 12:52:10 +0000 |
| commit | 6e4faa976117a6e411b02e99cbf2c836a336e9fb (patch) | |
| tree | 42f50f46134706d6cc4b214d8f7c4aa31673228d /.gitlab-ci.yml | |
| parent | add license (diff) | |
| download | inkscape-6e4faa976117a6e411b02e99cbf2c836a336e9fb.tar.gz inkscape-6e4faa976117a6e411b02e99cbf2c836a336e9fb.zip | |
run clang-tidy earlier in CI
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 10 |
1 files 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 |
