libvirt/ci/cirrus/freebsd-12.yml.j2
Andrea Bolognani 6190c14151 ci: Enable Cirrus CI integration
We use cirrus-run to trigger Cirrus CI jobs from GitLab CI jobs,
making it possible to extend our platform coverage to include
FreeBSD without having to maintain our own runners; additionally,
we'll be able to ditch Travis CI and, since results for Cirrus CI
jobs are reflected back to the GitLab CI jobs that triggered them,
we will be able to get all information from a single dashboard.

The FreeBSD and macOS job definitions can be improved further: for
example, we will want to enable caching to speed up builds, and
ultimately we should figure out a way to generate at least part of
them, notably the list of packages to be installed, using lcitool.
All of that will happen in later patches: for now, this is good
enough to start using Cirrus CI.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2020-06-10 10:30:56 +02:00

74 lines
1.4 KiB
Django/Jinja

freebsd_instance:
image_family: freebsd-12-1
env:
CI_REPOSITORY_URL: {{ CI_REPOSITORY_URL }}
CI_COMMIT_REF_NAME: {{ CI_COMMIT_REF_NAME }}
CI_COMMIT_SHA: {{ CI_COMMIT_SHA }}
freebsd_12_task:
install_script:
- pkg install -y
augeas
autoconf
automake
avahi
bash
bash-completion
ca_root_nss
ccache
chrony
cppi
curl
cyrus-sasl
dbus
diskscrub
dnsmasq
fusefs-libs
gdb
gettext
gettext-tools
git
glib
gmake
gnutls
hal
libpcap
libpciaccess
libssh
libssh2
libtool
libxml2
libxslt
lsof
meson
ncurses
ninja
patch
perl5
pkgconf
polkit
py37-docutils
py37-flake8
py37-setuptools
py37-wheel
python3
qemu-utils
radvd
readline
screen
sudo
vim
yajl
clone_script:
- git clone --depth 100 "$CI_REPOSITORY_URL" .
- git fetch origin "$CI_COMMIT_REF_NAME"
- git reset --hard "$CI_COMMIT_SHA"
build_script:
- mkdir build
- cd build
- ../autogen.sh --prefix=$(pwd)/install-root
- gmake -j3
- gmake -j3 install
- gmake -j3 dist