mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
fb91290131
Instead of having static job definitions for FreeBSD and macOS, use a generic template for both and fill in the details that are actually different, such as the list of packages to install, in the GitLab CI job, right before calling cirrus-run. The target-specific information are provided by lcitool, so that keeping them up to date is just a matter of running the refresh script when necessary. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
23 lines
313 B
Bash
Executable File
23 lines
313 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if test -z "$1"
|
|
then
|
|
echo "syntax: $0 PATH-TO-LCITOOL"
|
|
exit 1
|
|
fi
|
|
|
|
LCITOOL=$1
|
|
|
|
if ! test -x "$LCITOOL"
|
|
then
|
|
echo "$LCITOOL is not executable"
|
|
exit 1
|
|
fi
|
|
|
|
HOSTS=$($LCITOOL hosts | grep -E 'freebsd-12|macos')
|
|
|
|
for host in $HOSTS
|
|
do
|
|
$LCITOOL variables "$host" libvirt >"$host.vars"
|
|
done
|