Compare commits

...

3 Commits

Author SHA1 Message Date
Tom Krizek
f44227a2c9 DROP: ci - use staging 2022-09-13 16:25:22 +02:00
Tom Krizek
928f12e801 WIP gitlabci 2022-09-13 15:41:15 +02:00
Tom Krizek
dc51559a30 WIP: run-unshare script 2022-09-13 15:38:43 +02:00
2 changed files with 10 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ variables:
# Locale settings do not affect the build, but might affect tests.
LC_ALL: C
CI_REGISTRY_IMAGE: registry.gitlab.isc.org/isc-projects/images/bind9
CI_REGISTRY_IMAGE: registry.gitlab.isc.org/isc-projects/images/bind9-staging
CCACHE_DIR: "/ccache"
GIT_DEPTH: 1
@@ -299,10 +299,11 @@ stages:
stage: system
before_script:
- test -n "${OUT_OF_TREE_WORKSPACE}" && cd "${OUT_OF_TREE_WORKSPACE}"
- *setup_interfaces
#- *setup_interfaces
script:
- cd bin/tests/system
- make -j${TEST_PARALLEL_JOBS:-1} -k check V=1
- sh run-unshare.sh serve-stale
#- make -j${TEST_PARALLEL_JOBS:-1} -k check V=1
- if git rev-parse > /dev/null 2>&1; then ( ! grep "^I:.*:file.*not removed$" *.log ); fi
after_script:
- test -n "${OUT_OF_TREE_WORKSPACE}" && cd "${OUT_OF_TREE_WORKSPACE}"

View File

@@ -0,0 +1,6 @@
#!/bin/bash
script_path="$(realpath ${0})"
script_dir="$(dirname "${script_path}")"
unshare -r -n sh -c "sh ${script_dir}/ifconfig.sh up && ip link set dev lo up && sh ${script_dir}/run.sh $*"