Commit 5078115b authored by Petr Špaček's avatar Petr Špaček Committed by Tomas Krizek

CI: accommodate changes from py.test migration

Also, I've found out that knot-resolver in Debian stable repos is so old
that it does not make sense to test on it anymore.

CI now compiles latest kresd master and does comparison on it.
parent 170dff85
......@@ -62,12 +62,20 @@ test:unittests:
- linux
- amd64
# changes in Deckard itself must not change result of tests
test:comparative:kresd:
stage: test
script:
# test kresd binary
- git clone --depth=1 https://gitlab.labs.nic.cz/knot/knot-resolver.git /tmp/kresd-local-build
- GIT_DIR=/tmp/kresd-local-build/.git git log -1
- ( cd /tmp/kresd-local-build ; git submodule update --init --recursive )
- PREFIX=/tmp/.local make -C /tmp/kresd-local-build -k all
- PREFIX=/tmp/.local make -C /tmp/kresd-local-build install
# compare results from latest Deckard with results from merge base
- cp ci/common.sh /tmp
- cp ci/compare-tests.sh /tmp
- /tmp/compare-tests.sh $(pwd)/kresd_run.sh
- LD_LIBRARY_PATH=/tmp/.local/lib PATH=/tmp/.local/sbin:$PATH /tmp/compare-tests.sh $(pwd)/kresd_run.sh
artifacts:
when: always
expire_in: '1 hour'
......@@ -90,7 +98,7 @@ test:latest:kresd:
- ( cd kresd-local-build ; git submodule update --init --recursive )
- PREFIX=$(pwd)/.local make -C kresd-local-build -k all
- PREFIX=$(pwd)/.local make -C kresd-local-build install
- TMPDIR=$(pwd) LD_LIBRARY_PATH=$(pwd)/.local/lib DAEMON=$(pwd)/.local/sbin/kresd ./kresd_run.sh -n $(nproc)
- TMPDIR=$(pwd) LD_LIBRARY_PATH=$(pwd)/.local/lib PATH=$(pwd)/.local/sbin:$PATH ./kresd_run.sh -n $(nproc)
artifacts:
when: on_failure
expire_in: 1 week
......
Markdown is supported
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