2019-11-15 20:35:08 +00:00
|
|
|
dist: bionic
|
2019-04-11 21:16:48 +01:00
|
|
|
|
2020-03-31 08:54:24 +01:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- '3.8'
|
|
|
|
- '3.7'
|
|
|
|
- '3.6'
|
|
|
|
install:
|
|
|
|
# Upstream defaults to world-read-writeable /dev/kvm. Debian/Ubuntu override
|
|
|
|
# this; see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892945. We want
|
|
|
|
# the upstream default.
|
2020-07-08 22:06:35 +01:00
|
|
|
- echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /lib/udev/rules.d/99-fix-kvm.rules > /dev/null
|
2020-03-31 08:54:24 +01:00
|
|
|
- sudo udevadm control --reload-rules
|
|
|
|
# On systemd >= 238 we can use udevadm trigger -w and remove udevadm settle.
|
|
|
|
- sudo udevadm trigger /dev/kvm
|
|
|
|
- sudo udevadm settle
|
|
|
|
script: python setup.py test -K
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2020-04-17 23:11:54 +01:00
|
|
|
- busybox-static
|
2020-03-31 08:54:24 +01:00
|
|
|
- libbz2-dev
|
|
|
|
- liblzma-dev
|
|
|
|
- qemu-kvm
|
|
|
|
- zlib1g-dev
|
|
|
|
- zstd
|