stages:
- check
+ - test
default:
image: $IMAGE_PREFIX/manager:$IMAGE_TAG
<<: *unit
variables:
PYTHON_INTERPRETER: python3.12
+
+.interactive: &interactive
+ stage: test
+ script:
+ - poetry install --only main,dev,test --all-extras
+ - poe run config.ci.yaml
+ # the following command makes sure that the source root of the coverage file is at $gitroot
+ - poetry run bash -c "cd ..; coverage combine manager/.coverage; coverage xml"
+ artifacts:
+ reports:
+ coverage_report:
+ coverage_format: cobertura
+ path: coverage.xml
+ junit: manager/unit.junit.xml
+ paths:
+ - manager/unit.junit.xml
+
+interactive:py3.8:
+ <<: *interactive
+ variables:
+ PYTHON_INTERPRETER: python3.8
\ No newline at end of file
echo Knot Manager API is accessible on http://localhost:5000
echo -------------------------------------------------------
+if [ -z "$1" ]
+ then
+ CONFIG_FILE="config.dev.yaml"
+else
+ CONFIG_FILE="$1"
+fi
+
# create runtime directories
if [ -z "${KRES_MANAGER_RUNTIME:-}" ]; then
KRES_MANAGER_RUNTIME="etc/knot-resolver"
mkdir -p "$KRES_MANAGER_RUNTIME/runtime" "$KRES_MANAGER_RUNTIME/cache"
if [ -z "${KRES_MANAGER_CONFIG:-}" ]; then
- KRES_MANAGER_CONFIG="$KRES_MANAGER_RUNTIME/config.dev.yaml"
+ KRES_MANAGER_CONFIG="$KRES_MANAGER_RUNTIME/$CONFIG_FILE"
fi
if [ -z "${KRES_MANAGER_API_SOCK:-}" ]; then