Built-in CI Commands
cikit provides ready-to-use commands for common CI tasks. They are available through
cikit <command> without creating a project-local ci_commands module.
Commands use the shared cikit environment. When a command produces metrics or
artifacts, they are associated with its logical run name.
This page documents the built-in command-line interface. For command registration, discovery, overrides, and the shared runner, see CI Commands. For direct use of the underlying Python macros, see Macros.
Command Overview
Command |
Purpose |
Macro |
|---|---|---|
Configure and build a CMake project; collect build metrics and artifacts. |
||
Collect C/C++ coverage and generate reports and a badge. |
||
Analyze C/C++ sources with clang-tidy using a CMake compilation database. |
||
Configure, build, and execute CMake/CTest tests. |
||
Generate Doxygen documentation and report warnings and generated outputs. |
||
Remove the public output directory and display the CI environment. |
— |
|
Build a PlatformIO project and collect compiler and build information. |
||
Analyze PlatformIO sources with clang-tidy. |
||
Build and validate Python wheel and source distributions. |
||
Combine and report Python coverage results. |
||
Run Pylint and create lint and TODO reports. |
||
Upload previously built Python distributions with Twine. |
||
Run a Python test directory and generate test reports. |
||
Remove intermediate Python coverage data before a test workflow. |
||
Pack repository sources and report token and security statistics. |
||
Run Ruff and generate lint reports. |
||
Prepare cikit artifacts and build Sphinx HTML documentation. |
||
Compile a LaTeX source to PDF with Tectonic. |
Command Usage
Global options, including --verbose and --name RUN, must appear
before the command name. Use cikit <command> --help to inspect its
available arguments. External tools must be provided by the project or CI
image; cikit does not install them automatically.
Logical Run Names
The default logical run name is specified on each command page. Use
--name to override it. The run name and physical build-directory name
are independent settings. For example:
cikit --name debug cbuild -b debug
cikit --name release cbuild -b release
Choose distinct artifact target names if outputs from different runs need to coexist in the shared public directory. See Artifacts for the artifact model and Cikit Data for run data.
Timeline Options
Commands supporting --timeline-limit N can query historical run data
and generate timeline charts. If omitted, the cikit data default limit is
used. A value of 0 disables timeline generation; a positive value
limits the number of history entries requested.
Timeline generation is an optional CI section: recoverable errors in this section do not change the CI exit status. Other errors are not suppressed. See Timeline Charts for timeline configuration and usage.