Skip to content
Snippets Groups Projects
Verified Commit 8340d86a authored by Tomas Krizek's avatar Tomas Krizek
Browse files

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

parent 85c1d571
No related branches found
No related tags found
1 merge request!1026ci: automate OBS builds and packaging tests
#!/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-dns-devel debian9
pkgtestdir="$(dirname ${0})"
repofile="$pkgtestdir/repos.yaml"
distro=$2
repo=$1
distro=$2
# Select repos
case "$repo" in
devel)
echo -e 'repos:\n - knot-dns-devel' > $repofile
;;
testing)
echo -e 'repos:\n - knot-dns-testing' > $repofile
;;
latest)
echo -e 'repos:\n - knot-dns-latest' > $repofile
;;
*)
echo "Unknown repo, choose devel|latest|testing"
exit 1
;;
esac
echo -e "repos:\n - $repo" > $repofile
pushd "$pkgtestdir/$distro"
vagrant destroy -f &>/dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment