Skip to content
Snippets Groups Projects
Commit ff4f5af5 authored by nimrod's avatar nimrod
Browse files

- Try using Vagrant with software virtualization.

parent 828632ee
No related branches found
No related tags found
No related merge requests found
......@@ -2,22 +2,28 @@
language: python
python: "2.7"
dist: trusty
sudo: false
sudo: True
group: beta
services: [docker]
env:
- platform: openbsd
- platform: xenial
cache:
- pip
- directories:
- $HOME/.pre-commit
install:
- sudo apt-get update
- sudo apt-get install -y linux-headers-$(uname -r) virtualbox
- wget https://releases.hashicorp.com/vagrant/1.9.1/vagrant_1.9.1_x86_64.deb
- sudo dpkg -i vagrant_1.9.1_x86_64.deb
- pip install -r tests/requirements.txt | cat
- ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles
- molecule dependency
script:
- pre-commit run --all-files
- molecule test --driver docker
- molecule test --platform $platform
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
......
......@@ -13,20 +13,26 @@ vagrant:
providers:
- name: virtualbox
type: virtualbox
options:
cpus: 1
platforms:
- name: openbsd
box: kaorimatz/openbsd-6.0-amd64
box: fnichol/openbsd-6.0-i386
- name: xenial
box: ubuntu/xenial64
box: ubuntu/xenial32
instances:
- name: example
options:
append_platform_to_hostname: yes
raw_config_args:
- 'vm.synced_folder ".", "/vagrant", disabled: true'
- 'vbguest.auto_update = false'
- 'landrush.enabled = false'
- 'landrush_ip.override = false'
- 'vbguest.auto_update = false if Vagrant.has_plugin?("vbguest")'
- 'landrush.enabled = false if Vagrant.has_plugin?("landrush")'
- 'landrush_ip.override = false if Vagrant.has_plugin?("landrush")'
- |
vm.provider "virtualbox" do |v|
v.customize "pre-boot", ["modifyvm", :id, "--hwvirtex", "off"]
end
docker:
containers:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment