Files
ansible_role_package/tests/setup.sh
Matthew Stobbs ac87ba3f4c fix tests
- only leave fedora enabled
- test each package one at a time to ensure they install correctly
2025-02-28 20:11:35 -07:00

25 lines
533 B
Bash
Executable File

#!/usr/bin/env zsh
[[ -f ./lib.sh ]] && source ./lib.sh || exit 1
if [ "$HOSTOS" = "Darwin" ]
then
echo "Starting $MACHINENAME"
podman machine start -q $MACHINENAME
while [ "$(machine_state)" != "running" ]
do
echo $(machine_state)
echo "Wating for $MACHINENAME to start"
sleep 1
done
echo "Machine $MACHINENAME running"
fi
echo "Building container images"
for os in ${OSBUILDS[@]}
do
echo "Building image for ${os}"
podman build --platform linux/amd64 -f Containerfile.${os} -t ${IMAGE}:${os} .
done