live-bootstrap/.cirrus.yml

69 lines
1.8 KiB
YAML
Raw Normal View History

2021-02-08 06:23:31 +00:00
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
2021-04-06 00:12:02 +01:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
2021-02-08 06:23:31 +00:00
#
# SPDX-License-Identifier: GPL-3.0-or-later
2021-04-06 00:12:02 +01:00
pylint_task:
container:
image: debian:bullseye
deps_script:
- apt-get -y update
- apt-get -y dist-upgrade
- apt-get -y install python3-requests pylint
- apt-get -y clean
check_script:
- pylint rootfs.py sysa.py lib/utils.py
shell_lint_task:
container:
image: debian:stable
deps_script:
2021-01-08 21:58:34 +00:00
- apt-get -y update
- apt-get -y dist-upgrade
- apt-get -y install shellcheck
- apt-get -y clean
check_script:
2021-04-10 12:38:37 +01:00
- shellcheck sysa/run.sh sysa/helpers.sh
2021-01-08 21:58:34 +00:00
reuse_lint_task:
container:
image: debian:stable
deps_script:
- apt-get -y update
- apt-get -y dist-upgrade
- apt-get -y install python3-pip git
- apt-get -y clean
- pip3 install reuse
check_script:
- reuse lint
2021-01-08 21:58:34 +00:00
run_task:
2021-03-20 23:35:31 +00:00
timeout_in: 180m
container:
image: potyarkin/molecule:host-kvm
kvm: true
cpu: 2
memory: 4G
2021-01-08 21:58:34 +00:00
# Required background services
dbus_background_script:
- mkdir -p /var/run/dbus
- /usr/bin/dbus-daemon --system --nofork --nopidfile
virtlogd_background_script:
- /usr/sbin/virtlogd
libvirtd_background_script:
- sleep 2 && /usr/sbin/libvirtd
iptables_legacy_script:
- update-alternatives --set iptables /usr/sbin/iptables-legacy
deps_script:
- apt-get -y update
- apt-get -y dist-upgrade
2021-03-30 22:43:33 +01:00
- apt-get -y install sudo git cpio linux-image-4.19.0-16-amd64 expect wget
2021-01-08 21:58:34 +00:00
- apt-get -y clean
submodule_script:
- git submodule update --init --recursive
kernel_script:
2021-03-30 22:43:33 +01:00
- cp /boot/vmlinuz-4.19.0-16-amd64 ./kernel
2021-01-08 21:58:34 +00:00
run_script:
- ./.cirrus.expect | tee -a /tmp/run.log
- grep -q 'Bootstrapping completed.' /tmp/run.log