- linux
- amd64
+examples:py3.11:
+ stage: check
+ script:
+ - poetry install --only main,dev
+ - poe examples
+ variables:
+ PYTHON_INTERPRETER: python3.11
+
lint:py3.11:
stage: check
script:
variables:
PYTHON_INTERPRETER: python3.11
-
.unit: &unit
stage: check
script:
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" }
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-nocwd = { script = "knot_resolver_manager.cli.main:main", help="run kresctl" } # Python <3.8 and poethepoet <0.22.0 compatibility (see also `./poe`)
clean = """
--- /dev/null
+#!/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