2.1.6.1. cli.cmd_ci.check_ci_config

Checks that the GitLab CI configuration adheres to some rules

Functions

analyze_config(ci_config, stage_files)

Analyze the loaded configuration.

check_ci_config()

Reads the '.gitlab-ci.yml' file and validates it.

check_emb_spa_build_alignment(ci_config)

Check that target and SPA build are aligned.

check_job_prefix(ci_config, stages)

check that all job use the correct prefix

get_expected_artifacts(ci_config)

Return the list of artifacts we expect from the target and the SPA build.

get_stages(ci_config)

Returns a list of stage objects

match_stages_with_files(ci_config, stages, ...)

Check that the setup: defined stages <-> included stage files <-> existing stage files matches

read_config()

Reads the '.gitlab-ci.yml' file

validate_build_app_matrix(ci_config)

Validate the application build matrix is set.

validate_hil_test_config(ci_config, expected)

Validate the configuration of the HIL setup.

validate_spae_artifacts(ci_config, expected)

Validate the artifacts that are required for the SPA evaluation artifact package

Classes

Stage(name, prefix)

container for stage