Skip to content
Snippets Groups Projects
Verified Commit 8d143acd authored by Tomas Krizek's avatar Tomas Krizek Committed by Vladimír Čunát
Browse files

distro/tests: support more OBS repos in test-distro.sh

parent 00d72ef7
Branches
Tags
1 merge request!824distrotests: automate packaging tests in GitLab CI
#!/bin/bash -x
# ./test-distro.sh {devel|latest} {distro}
# Example usage: ./test-distro.sh devel debian9
# ./test-distro.sh {obs_repo} {distro}
# Example usage: ./test-distro.sh knot-resolver-devel debian9
pkgtestdir="$(dirname ${0})"
repofile="$pkgtestdir/repos.yaml"
......@@ -10,22 +10,11 @@ distro=$2
repo=$1
# Select repos
# TODO: enable knot-dns-devel
echo -e 'repos:\n - knot-resolver-latest' > $repofile # latest is needed for knot
case "$repo" in
devel)
echo -e ' - knot-resolver-devel' >> $repofile
;;
testing)
echo -e 'repos:\n - knot-resolver-testing' > $repofile
;;
latest)
;;
*)
echo "Unknown repo, choose devel|latest|testing"
exit 1
;;
esac
echo -e "repos:\n - $repo" > $repofile
if [ "$repo" == "knot-resolver-devel" ]; then
# get Knot DNS from knot-resolver-latest
echo -e ' - knot-resolver-latest' >> $repofile
fi
pushd "$pkgtestdir/$distro"
vagrant destroy -f &>/dev/null
......
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