Skip to content
Snippets Groups Projects
Verified Commit 95e1c979 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

TST: check code style in pipeline

parent 43cf1ef7
No related branches found
No related tags found
No related merge requests found
Pipeline #10558 failed
......@@ -55,7 +55,7 @@ build-testenv:
# Formatting with miss_hit
code_style:
code_style_octave:
tags: [ docker ]
stage: test
script:
......@@ -63,6 +63,13 @@ code_style:
- mh_style --octave ./src ./doc
allow_failure: true
code_style_cpp:
tags: [ docker ]
stage: test
script:
- clang-format-11 --dry-run --verbose --Werror $(find test/ src/ -type f -iname "*.cpp" -o -iname "*.h" -o -iname "*.h.in")
allow_failure: true
# Unit tests
test:
tags: [ docker ]
......@@ -71,12 +78,14 @@ test:
- octave -v
- make test
# Linting with miss_hit
linting_octave:
tags: [ docker ]
stage: test
script:
- mh_lint --octave ./
# linting with clang-tidy and include-what-you-use
linting_cpp:
tags: [ docker ]
stage: test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment