blob: 550ff9060d99e05dbccaaff6192da7738ea8881d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash -x
# ./test-distro.sh {devel|latest} {distro}
# Example usage: ./test-distro.sh devel debian9
distro=$2
repo=$1
# Select repos
case "$repo" in
devel)
echo -e 'repos:\n - knot-dns-devel' > repos.yaml
;;
testing)
echo -e 'repos:\n - knot-dns-testing' > repos.yaml
;;
latest)
echo -e 'repos:\n - knot-dns-latest' > repos.yaml
;;
*)
echo "Unknown repo, choose devel|latest|testing"
exit 1
;;
esac
cd "$distro"
vagrant destroy -f &>/dev/null
vagrant up
ret=$?
vagrant destroy -f &>/dev/null
exit $ret
|