Commit a13028f9 authored by Benjamin Tissoires's avatar Benjamin Tissoires
Browse files

generate_template: add a CI check fot it



Enforces that `generate_template.py` is actually run for each commit.
Signed-off-by: Benjamin Tissoires's avatarBenjamin Tissoires <benjamin.tissoires@gmail.com>
parent efed9d69
......@@ -41,6 +41,7 @@ variables:
stages:
- sanity check
- bootstrapping
- alpine_container_build
- alpine_check
......@@ -57,6 +58,24 @@ stages:
- container_push
#
# We want those to fail as early as possible, so we are reusing the current
# wayland/ci-templates/buildah:latest image
#
sanity check:
stage: sanity check
image: $CI_REGISTRY/wayland/ci-templates/buildah:latest
script:
- pip3 install --user jinja2 PyYAML
- python3 ./src/generate_templates.py
- git diff --exit-code && exit 0 || true
- echo "some files were not generated through 'src/generate_templates.py' or
have not been committed. Please edit the files under 'src', run
'src/generate_template.py' and then commit the result"
- exit 1
bootstrap:
extends: .bootstrap
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment