starter-kit/.cirrus.yml
Martin Pitt e031456805 tests: Use cockpit/tasks container in Cirrus CI
This avoids the lengthy (and potentially brittle) installation of
dependencies and having to create an unprivileged user.

Since [1] the tasks container can now fix /dev/kvm permissions.

[1] https://github.com/cockpit-project/cockpituous/pull/366
2021-01-26 14:28:41 +01:00

21 lines
680 B
YAML

container:
# official cockpit CI container, with cockpit related build and test dependencies
# if you want to use your own, see the documentation about required packages:
# https://github.com/cockpit-project/cockpit/blob/master/HACKING.md#getting-the-development-dependencies
image: quay.io/cockpit/tasks
kvm: true
# increase this if you have many tests that benefit from parallelism
cpu: 1
test_task:
env:
matrix:
- TEST_OS: fedora-33
- TEST_OS: centos-8-stream
fix_kvm_script: sudo chmod 666 /dev/kvm
# test PO template generation
pot_build_script: make po/starter-kit.pot
check_script: TEST_JOBS=$(nproc) TEST_OS=$TEST_OS make check