Add test scripts for mars

This commit is contained in:
2021-10-03 12:55:12 +02:00
parent c8aa56fe47
commit 5c38e9a5f7

View File

@@ -59,6 +59,17 @@ test_neptune() {
'
}
test_mars() {
docker pull docker.io/library/ubuntu:20.04
docker run -ti --rm -v ${tmpdir}/dotfiles.tar.gz:/tmp/dotfiles.tar.gz:ro --hostname mars docker.io/library/ubuntu:20.04 sh -c '
set -o errexit
cd $(mktemp -d)
tar xf /tmp/dotfiles.tar.gz -C .
ANSIBLE_EXTRA_ARGS="-e manage_services=false" ./install.sh
'
}
case "${1:-all}" in
ares)
test_ares
@@ -66,8 +77,12 @@ case "${1:-all}" in
neptune)
test_neptune
;;
mars)
test_mars
;;
all)
test_ares
test_neptune
test_mars
;;
esac