diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b959615740078f31d4e6816c24a2a0f090dcfa6e..a1fa490069bae414848cd9cc6b5f2450d108d638 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ - id: flake8 - id: check-symlinks - repo: https://github.com/adarnimrod/ansible-pre-commit.git - sha: 0fadd691465b97db8992cfc66650f630e433324b + sha: v0.5.0 hooks: - id: ansible-syntax-check always_run: true diff --git a/.travis.yml b/.travis.yml index e4ef31ae28f1585a976077bb9bd3c45cdbcd0195..2300cbc71367337ced340ea45c0ae1e4757a403d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,12 +4,12 @@ python: ["2.7", "3.5"] dist: trusty sudo: True group: beta -services: [docker] env: - - platform: xenial - driver: vagrant - - platform: trusty - driver: vagrant + global: + - VBOX_MEMORY=2048 + matrix: + - platform: xenial + - platform: trusty matrix: fast_finish: True allow_failures: @@ -30,8 +30,9 @@ install: script: - pre-commit run --all-files - - travis_wait 45 molecule test --driver $driver --platform $platform + - travis_wait 45 molecule test --platform $platform notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ email: false + on_failure: never diff --git a/README.rst b/README.rst index a971186863348a6f6c432740d97c4f3117cda06d..adebd9865370eb406a6e5774036c0daa2a318975 100644 --- a/README.rst +++ b/README.rst @@ -29,9 +29,8 @@ See :code:`tests/playbook.yml`. Testing ------- -Testing requires Python 2.7 and either Docker or Vagrant and Virtualbox. -Install the Python dependencies, dependent roles and roles required for -testing: +Testing requires Python 2.7, Vagrant and Virtualbox. Install the Python +dependencies, dependent roles and roles required for testing: .. code:: shell diff --git a/meta/main.yml b/meta/main.yml index 45660725fa9e48befa3adf108c8c67eba40db93f..ce4c4176ea073dd4322edba28fbbd663de494f7a 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -8,6 +8,7 @@ galaxy_info: - name: Ubuntu versions: - xenial + - trusty galaxy_tags: [ docker ] dependencies: - name: python27 diff --git a/molecule.yml b/molecule.yml index 5b16606e25ef49a7dd77989e56ecf6ef15f39969..d8f3103f05befcbf34bed1d68ca9326facc35239 100644 --- a/molecule.yml +++ b/molecule.yml @@ -25,6 +25,7 @@ vagrant: options: append_platform_to_hostname: yes raw_config_args: + - 'vm.boot_timeout = 600' - 'vm.synced_folder ".", "/vagrant", disabled: true' - 'vbguest.auto_update = false if Vagrant.has_plugin?("vbguest")' - 'landrush.enabled = false if Vagrant.has_plugin?("landrush")' @@ -32,4 +33,5 @@ vagrant: - | vm.provider "virtualbox" do |v| v.customize "pre-boot", ["modifyvm", :id, "--hwvirtex", "off"] + v.memory = ENV['VBOX_MEMORY'].to_i if ENV.has_key?('VBOX_MEMORY') end diff --git a/tests/requirements.txt b/tests/requirements.txt index f4cbfddce2bfb1c4aed0a59c2b32325c4f83b433..4048613cd74709b38431e3ad1d4010fcef266f4a 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,11 +1,10 @@ ansible==2.2.1.0 -testinfra==1.5.2 -molecule==1.19.0 +testinfra==1.5.3 +molecule==1.20.0 ansible-lint==3.4.10 -pre-commit==0.11.0 +pre-commit==0.12.2 piprot==0.9.7 python-vagrant==0.5.14 -docker-py==1.10.6 netaddr==0.7.19 -passlib==1.7.0 +passlib==1.7.1 bcrypt==3.1.2