mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
Check clang-format at CI stage
This commit is contained in:
parent
19d98d6a74
commit
92e7c78f56
|
@ -55,3 +55,16 @@ build_clazy_clang_tidy:
|
||||||
# Fix the poppler header, remove when debian:unstable ships poppler 0.82 or later
|
# Fix the poppler header, remove when debian:unstable ships poppler 0.82 or later
|
||||||
- sed -i "N;N;N;N; s#class MediaRendition\;\nclass MovieAnnotation\;\nclass ScreenAnnotation;#class MediaRendition\;#g" /usr/include/poppler/qt5/poppler-link.h
|
- sed -i "N;N;N;N; s#class MediaRendition\;\nclass MovieAnnotation\;\nclass ScreenAnnotation;#class MediaRendition\;#g" /usr/include/poppler/qt5/poppler-link.h
|
||||||
- run-clang-tidy
|
- run-clang-tidy
|
||||||
|
|
||||||
|
clang_format:
|
||||||
|
stage: build
|
||||||
|
image: debian:testing
|
||||||
|
only:
|
||||||
|
- merge_requests
|
||||||
|
- master
|
||||||
|
before_script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install --yes --no-install-recommends git clang-format-10
|
||||||
|
script:
|
||||||
|
- find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format-10 -i {} \;
|
||||||
|
- git diff --exit-code
|
||||||
|
|
Loading…
Reference in a new issue