Skip to content
Snippets Groups Projects
Commit 4d629f46 authored by Jakub Ružička's avatar Jakub Ružička
Browse files

WiP: CI: enable new packaging tests using apkg

See: #612
parent 0c93eb66
No related merge requests found
Pipeline #103680 failed
......@@ -25,7 +25,7 @@ stages:
- test
- respdiff
- deploy
- pkgtest
- pkg
# https://docs.gitlab.com/ce/ci/jobs/job_control.html#select-different-runner-tags-for-each-parallel-matrix-job
.multi_platform: &multi_platform
......@@ -578,10 +578,60 @@ obs:release:
obs:odvr:
<<: *obs_trigger
stage: pkgtest # last stage to ensure it doesn't block anything
stage: pkg # last stage to ensure it doesn't block anything
only:
- tags
variables:
OBS_REPO: knot-resolver-odvr
when: manual
# }}}
# pkg {{{
.setup_apkg: &setup_apkg
- python3 -m pip install pipx
- python3 -m pipx install apkg
.pkg_deb_extras: &deb_extras
<<: *pkg_test
before_script:
- apt update
# needed by pipx
- apt install -y python3-venv
.pkg_test: &pkg_test
stage: pkg
needs:
- pkg:make-archive
script:
- *setup_apkg
# make sure the archive from pkg:make-archive is available
- apkg info cache | grep archive/dev
- apkg install --build-dep
- apkg test --test-dep
.pkg_test_deb: &pkg_test_deb
<<: *pkg_test
<<: *pkg_deb_extras
pkg:make-archive:
# archive is created once and reused in other pkg jobs
<<: *pkg_deb_extras
image: $CI_REGISTRY/packaging/apkg/ci/debian-11:apkg
stage: pkg
needs: []
artifacts:
paths:
- pkg/
script:
- *setup_apkg
- apkg build-dep
- apkg make-archive
pkg:debian-11:
<<: *pkg_test_deb
image: $CI_REGISTRY/labs/lxc-gitlab-runner/debian-11
pkg:fedora-36:
<<: *pkg_test
image: $CI_REGISTRY/labs/lxc-gitlab-runner/fedora-36
# }}}
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