From 52525ba8ce54590dc6d47d54316934eeb42deef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 3 Oct 2021 12:55:12 +0200 Subject: [PATCH] Add test scripts for mars --- test-in-docker.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test-in-docker.sh b/test-in-docker.sh index cd8c88a..7bf35ec 100755 --- a/test-in-docker.sh +++ b/test-in-docker.sh @@ -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