mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-21 23:50:37 +01:00
gitlab-ci: add .gitlab-ci/README.md
This commit is contained in:
parent
a8b2997fa5
commit
fbbe81634f
1 changed files with 29 additions and 0 deletions
29
.gitlab-ci/README.md
Normal file
29
.gitlab-ci/README.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
.gitlab-ci
|
||||
==========
|
||||
|
||||
We run tests in the gitlab-ci pipeline at
|
||||
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/pipelines
|
||||
|
||||
This directory contains a template for generating [.gitlab-ci.yml](../.gitlab-ci.yml).
|
||||
|
||||
It uses [ci-templates](https://gitlab.freedesktop.org/freedesktop/ci-templates/) project.
|
||||
|
||||
To get the right version of ci-templates, see the "Regenerate with" comment in
|
||||
[.gitlab-ci.yml](../.gitlab-ci.yml). It shows how to install ci-fairy via
|
||||
python pip. The exact version to be used is hard-coded as `.templates_sha`
|
||||
variable in ci.template file.
|
||||
|
||||
Whenever changing relevant files, .gitlab-ci.yml must be regenerated.
|
||||
Regenerate the yml by running `ci-fairy generate-template`.
|
||||
|
||||
There are also tests for checking that the yml is correct:
|
||||
|
||||
1) run `tools/check-gitlab-ci.sh`
|
||||
2) run `make check-local-gitlab-ci`, which runs 1). This also
|
||||
runs as part of `make check`.
|
||||
|
||||
In both cases, the test is skipped if `ci-fairy` is not in the path.
|
||||
Install the correct `ci-fairy` version.
|
||||
|
||||
In gitlab-ci pipeline, the "check-tree" test also checks that .gitlab-ci.yml
|
||||
is up to date.
|
||||
Loading…
Add table
Reference in a new issue