diff --git a/.gitlab-ci.manager.yml b/.gitlab-ci.manager.yml index 08fc4b23d..2072f2439 100644 --- a/.gitlab-ci.manager.yml +++ b/.gitlab-ci.manager.yml @@ -1,11 +1,13 @@ -stages: - - check - -variables: - PYTHON_INTERPRETER: python3.12 - -default: +.poetry: &poetry image: $IMAGE_PREFIX/manager:$IMAGE_TAG + needs: [] + except: + refs: + - master@knot/knot-resolver + - master@knot/security/knot-resolver + - tags + variables: + - $SKIP_CI == "1" before_script: - poetry --version - poetry env use $PYTHON_INTERPRETER @@ -15,27 +17,32 @@ default: - linux - amd64 -examples: - stage: check +poe:examples: + <<: *poetry + stage: sanity script: - poe examples -check: - stage: check +poe:check: + <<: *poetry + stage: sanity script: - poe check -format: - stage: check +poe:format: + <<: *poetry + stage: sanity script: - poe format -lint: - stage: check +poe:lint: + <<: *poetry + stage: sanity script: - poe lint .python_interpreters: &python_interpreters + <<: *poetry parallel: matrix: - PYTHON_INTERPRETER: @@ -46,8 +53,8 @@ lint: - python3.12 - python3.13 -test: - stage: check +poe:pytest: + stage: test <<: *python_interpreters script: - poe test diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a333abdcf..38b0e5faa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,7 @@ variables: MESON_TEST: meson test -C build_ci* -t 4 --print-errorlogs PREFIX: $CI_PROJECT_DIR/.local EMAIL: 'ci@nic' + PYTHON_INTERPRETER: python3.12 # IMAGE_TAG is a Git branch/tag name from https://gitlab.nic.cz/knot/knot-resolver-ci # In general, keep it pointing to a tag - use a branch only for development. @@ -471,19 +472,22 @@ test:valgrind: --wrap="valgrind --leak-check=full --trace-children=yes --quiet --suppressions=/lj.supp" --suite snowflake -manager: - stage: test - needs: [] - trigger: - include: .gitlab-ci.manager.yml - strategy: depend - except: - refs: - - master@knot/knot-resolver - - master@knot/security/knot-resolver - - tags - variables: - - $SKIP_CI == "1" + +include: .gitlab-ci.manager.yml + +# manager: +# stage: test +# needs: [] +# trigger: +# include: .gitlab-ci.manager.yml +# strategy: depend +# except: +# refs: +# - master@knot/knot-resolver +# - master@knot/security/knot-resolver +# - tags +# variables: +# - $SKIP_CI == "1" pytests: <<: *test_flaky @@ -811,8 +815,7 @@ pkg:arch: # docs: {{{ docs:build: - stage: deploy - needs: [] + stage: build script: - git submodule update --init --recursive - pip3 install -U -r doc/requirements.txt @@ -866,7 +869,7 @@ docs:release: url: https://www.knot-resolver.cz/documentation/artifacts/$CI_JOB_ID/index.html # This job deploys the current docs as -pages: +docs:pages: stage: deploy needs: - docs:build