OpenMiInk/third_party/kde-ci-utilities
Hellings b8c8ff98e2 Hi
2026-10-16 09:05:56 -04:00
..
components Hi 2026-10-16 09:05:56 -04:00
config Hi 2026-10-16 09:05:56 -04:00
gitlab-templates Hi 2026-10-16 09:05:56 -04:00
resources Hi 2026-10-16 09:05:56 -04:00
signing Hi 2026-10-16 09:05:56 -04:00
.gitignore Hi 2026-10-16 09:05:56 -04:00
.gitlab-ci.yml Hi 2026-10-16 09:05:56 -04:00
.pylintrc Hi 2026-10-16 09:05:56 -04:00
.yamllint Hi 2026-10-16 09:05:56 -04:00
config-template.yml Hi 2026-10-16 09:05:56 -04:00
flatpak-build.py Hi 2026-10-16 09:05:56 -04:00
flatpak-test.py Hi 2026-10-16 09:05:56 -04:00
generate-documentation.py Hi 2026-10-16 09:05:56 -04:00
gitlab-ci-clone.py Hi 2026-10-16 09:05:56 -04:00
package-registry-cleanup.py Hi 2026-10-16 09:05:56 -04:00
README.md Hi 2026-10-16 09:05:56 -04:00
reuse-lint-relaxed.sh Hi 2026-10-16 09:05:56 -04:00
run-ci-build.py Hi 2026-10-16 09:05:56 -04:00
run-clang-format.py Hi 2026-10-16 09:05:56 -04:00
run-collect-crashes.py Hi 2026-10-16 09:05:56 -04:00
run-commit-checks.py Hi 2026-10-16 09:05:56 -04:00
run-cppcheck.py Hi 2026-10-16 09:05:56 -04:00
seed-package-registry.py Hi 2026-10-16 09:05:56 -04:00
sftp-directory-mirror.py Hi 2026-10-16 09:05:56 -04:00
sync-s3-folder.py Hi 2026-10-16 09:05:56 -04:00
validate-json-files.py Hi 2026-10-16 09:05:56 -04:00
validate-xml-files.py Hi 2026-10-16 09:05:56 -04:00

CI Utilities

This repository is the main collection for tools relating to KDE's Gitlab CI.

KDE uses .kde-ci.yml and .gitlab-ci.yml files. The first is used to specify project dependencies, and the latter to run pipelines with simple include files. For more details, see the wiki page [https://community.kde.org/Infrastructure/Continuous_Integration_System].

Structure

The root directory includes the main config template that you can use as a base for .kde-ci.yml files, as well as individual tools used in the templates themselves.

Tools

run-cppcheck.py

Used by the cppcheck CI template. To run the script locally for your project do the following.

  • Set up everything for running the tool:
    • Clone the ci-utilities repository in your checkout of your project. Alternatively, add a link to a checkout of the ci-utilities repository.
    • Create a virtual Python environment for the tool:
python3 -m venv .venv
. .venv/bin/activate
pip install -r ci-utilities/resources/run-cppcheck-requirements.txt
  • If you have already set up everything then just activate the virtual Python environment:
. .venv/bin/activate
  • Run the tool:
python3 -u ci-utilities/run-cppcheck.py --project PROJECT_NAME

where you replace PROJECT_NAME with the (repository) name of your project.

You can find the results as a human friendly HTML file in kde-ci-reports/cppcheck/index.html inside your project directory.