Skip to content

Commit

Permalink
[CI][GitLab] Refactoring lint stage
Browse files Browse the repository at this point in the history
  • Loading branch information
akmaru committed Jun 24, 2024
1 parent 70d557c commit b07a983
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,26 @@ build:release:
#
# Lint
#
lint:clang-format:
.lint_base:
stage: lint
needs:
- job: build:release
artifacts: true

lint:clang-format:
extends: .lint_base
script:
- find . -type f -name "*.h" -not -path './build/*' -or -name "*.cc" -not -path './build/*' | xargs clang-format --dry-run -Werror
- ./scripts/lint/check_clang_format.sh

lint:clang-tidy:
stage: lint
needs:
- job: build:release
artifacts: true
extends: .lint_base
script:
- find . -type f -name "*.h" -not -path './build/*' -or -name "*.cc" -not -path './build/*' | xargs clang-tidy -p build
- ./scripts/lint/check_clang_tidy.sh build

lint:cmake-format:
stage: lint
needs:
- job: build:release
extends: .lint_base
script:
- find . -type f -name "CMakeLists.txt" -not -path './build/*' -or -name "*.cmake" -not -path './build/*' | xargs cmake-format --check
- ./scripts/lint/check_cmake_format.sh


#
Expand Down

0 comments on commit b07a983

Please sign in to comment.