-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy path.travis.yml
35 lines (28 loc) · 1018 Bytes
/
.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
---
branches:
only:
- "master"
dist: bionic
language: python
python: 3.5
env:
matrix:
- MOLECULE_DISTRO: centos/7
- MOLECULE_DISTRO: centos/8
- MOLECULE_DISTRO: debian/stretch64
- MOLECULE_DISTRO: debian/buster64
- MOLECULE_DISTRO: generic/ubuntu1604
- MOLECULE_DISTRO: generic/ubuntu1804
install:
- |
export VAGRANT_VERSION=2.2.9
sudo apt-get update && sudo apt-get install -y bridge-utils dnsmasq-base ebtables libvirt-bin libvirt-dev qemu-kvm qemu-utils ruby-dev
sudo wget -nv https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb
sudo dpkg -i vagrant_${VAGRANT_VERSION}_x86_64.deb
vagrant --version
- sudo vagrant plugin install vagrant-libvirt
- pip3 install molecule yamllint ansible-lint python-vagrant molecule-vagrant testinfra
- sudo chown -R travis:travis /home/travis/.vagrant.d
- sudo gpasswd -a travis libvirt
script:
- sudo -E su travis -c "source $VIRTUAL_ENV/bin/activate; molecule test"