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

Merge branch 'feature/software_virtualization'

parents 828632ee a18cf1d5
No related branches found
No related tags found
No related merge requests found
...@@ -2,22 +2,28 @@ ...@@ -2,22 +2,28 @@
language: python language: python
python: "2.7" python: "2.7"
dist: trusty dist: trusty
sudo: false sudo: True
group: beta group: beta
services: [docker] env:
- platform: openbsd
- platform: xenial
cache: cache:
- pip - pip
- directories: - directories:
- $HOME/.pre-commit - $HOME/.pre-commit
install: 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 - pip install -r tests/requirements.txt | cat
- ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles - ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles
- molecule dependency - molecule dependency
script: script:
- pre-commit run --all-files - pre-commit run --all-files
- molecule test --driver docker - molecule test --platform $platform
notifications: notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/ webhooks: https://galaxy.ansible.com/api/v1/notifications/
......
...@@ -13,20 +13,26 @@ vagrant: ...@@ -13,20 +13,26 @@ vagrant:
providers: providers:
- name: virtualbox - name: virtualbox
type: virtualbox type: virtualbox
options:
cpus: 1
platforms: platforms:
- name: openbsd - name: openbsd
box: kaorimatz/openbsd-6.0-amd64 box: fnichol/openbsd-6.0-i386
- name: xenial - name: xenial
box: ubuntu/xenial64 box: ubuntu/xenial32
instances: instances:
- name: example - name: example
options: options:
append_platform_to_hostname: yes append_platform_to_hostname: yes
raw_config_args: raw_config_args:
- 'vm.synced_folder ".", "/vagrant", disabled: true' - 'vm.synced_folder ".", "/vagrant", disabled: true'
- 'vbguest.auto_update = false' - 'vbguest.auto_update = false if Vagrant.has_plugin?("vbguest")'
- 'landrush.enabled = false' - 'landrush.enabled = false if Vagrant.has_plugin?("landrush")'
- 'landrush_ip.override = false' - 'landrush_ip.override = false if Vagrant.has_plugin?("landrush")'
- |
vm.provider "virtualbox" do |v|
v.customize "pre-boot", ["modifyvm", :id, "--hwvirtex", "off"]
end
docker: docker:
containers: containers:
......
...@@ -8,6 +8,5 @@ ...@@ -8,6 +8,5 @@
roles: [debian-bootstrap] roles: [debian-bootstrap]
- hosts: all - hosts: all
strategy: free
roles: roles:
- role: example - role: example
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