Skip to content
Snippets Groups Projects
Commit 299ec2cf authored by Aleš Mrázek's avatar Aleš Mrázek
Browse files

manager: ci: validate all config examples

parent 0f094356
1 merge request!1454doc: config file examples and gettingstarted-config chapter
Pipeline #117310 waiting for manual action with stages
in 14 minutes and 30 seconds
...@@ -12,6 +12,14 @@ default: ...@@ -12,6 +12,14 @@ default:
- linux - linux
- amd64 - amd64
examples:py3.11:
stage: check
script:
- poetry install --only main,dev
- poe examples
variables:
PYTHON_INTERPRETER: python3.11
lint:py3.11: lint:py3.11:
stage: check stage: check
script: script:
...@@ -20,7 +28,6 @@ lint:py3.11: ...@@ -20,7 +28,6 @@ lint:py3.11:
variables: variables:
PYTHON_INTERPRETER: python3.11 PYTHON_INTERPRETER: python3.11
.unit: &unit .unit: &unit
stage: check stage: check
script: script:
......
...@@ -68,6 +68,7 @@ format = { shell = "black knot_resolver_manager/ tests/ scripts/ build.py; isort ...@@ -68,6 +68,7 @@ format = { shell = "black knot_resolver_manager/ tests/ scripts/ build.py; isort
fixdeps = { shell = "poetry install; npm install; npm update", help = "Install/update dependencies according to configuration files"} fixdeps = { shell = "poetry install; npm install; npm update", help = "Install/update dependencies according to configuration files"}
commit = { shell = "scripts/commit", help = "Invoke every single check before commiting" } commit = { shell = "scripts/commit", help = "Invoke every single check before commiting" }
container = { cmd = "scripts/container.py", help = "Manage containers" } container = { cmd = "scripts/container.py", help = "Manage containers" }
examples = { cmd = "scripts/examples", help = "Validate all configuration examples" }
kresctl = { script = "knot_resolver_manager.cli.main:main", cwd="${POE_PWD}", help="run kresctl" } kresctl = { script = "knot_resolver_manager.cli.main:main", cwd="${POE_PWD}", help="run kresctl" }
kresctl-nocwd = { script = "knot_resolver_manager.cli.main:main", help="run kresctl" } # Python <3.8 and poethepoet <0.22.0 compatibility (see also `./poe`) kresctl-nocwd = { script = "knot_resolver_manager.cli.main:main", help="run kresctl" } # Python <3.8 and poethepoet <0.22.0 compatibility (see also `./poe`)
clean = """ clean = """
......
#!/bin/bash
# ensure consistent behaviour
src_dir="$(dirname "$(realpath "$0")")"
source $src_dir/_env.sh
# validate all configuration examples
for example in $PWD/etc/knot-resolver/config.example.*.yaml;
do
poe kresctl validate --no-strict $example;
done
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