-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
42 lines (37 loc) · 1.23 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
os: linux
dist: focal
language: python
python:
- 3.8
env:
global:
- VAGRANT_DEFAULT_PROVIDER: libvirt
- PY_COLORS: 1
jobs:
include:
- env: MOLECULE_DISTRO=generic/ubuntu2004 PGPOOL_VERSION_DEBIAN=4.1.4-6.pgdg20.04+1
- env: MOLECULE_DISTRO=generic/debian11
cache:
directories:
- /home/travis/.vagrant.d/boxes
- /home/travis/.cache/pip
before_install:
- |
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install vagrant
sudo apt-get install -y build-essential qemu-kvm qemu-utils libvirt-dev libvirt-daemon-system libvirt-clients bridge-utils virtinst virt-manager dnsmasq
sudo -H -u travis \
CONFIGURE_ARGS="with-libvirt-include=/usr/share/libvirt with-libvirt-lib=/usr/lib64" vagrant plugin install vagrant-libvirt
- |
sudo usermod -aG libvirt travis
sudo usermod -aG kvm travis
vagrant --version
- |
sudo -H pip install --upgrade pip
sudo -H pip install --upgrade --ignore-installed --requirement requirements.txt
- |
molecule --version
script:
- sudo -E molecule --debug test --destroy=never