Skip to content
Snippets Groups Projects

Code formatting

Closed Grégoire Kubler requested to merge feat/formatter into main
Compare and
9 files
+ 183
67
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -3,12 +3,13 @@ include:
static_analysis:cpp:
stage: static_analysis
extends: .rules:static_analysis_coverage
extends:
- .rules:static_analysis:cpp
tags:
- static_analysis
before_script :
- apt-get update
- apt-get install -y cppcheck python-is-python3 python3-pip
- !reference [.retrieve_deps:apt, script]
- apt-get install -y cppcheck
- python -m pip install Pygments
- python -m pip install -U cppcheck_codequality
@@ -24,3 +25,30 @@ static_analysis:cpp:
- public
reports:
codequality: cppcheck.json
coverage:ubuntu_cpp:
stage: coverage
needs: ["build:ubuntu_cpp"]
extends:
- .build:variable:aidge_install
- .rules:static_analysis:cpp
tags:
- docker
before_script:
- !reference [.retrieve_deps:apt, script]
- apt-get install -qq -y gcovr
script:
- cd $BUILD_DIR
- ctest --output-on-failure
# HTML report for visualization
- gcovr --html-details --exclude-unreachable-branches -o coverage.html --root ${CI_PROJECT_DIR} --filter '\.\./include/' --filter '\.\./src/'
# Coberta XML report for Gitlab integration
- gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} --filter '\.\./include/' --filter '\.\./src/'
coverage: /^\s*lines:\s*\d+.\d+\%/
artifacts:
name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
expire_in: 2 days
reports:
coverage_report:
coverage_format: cobertura
path: $BUILD_DIR/coverage.xml
Loading