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 14032a04828696b90bdcb20c0d1320460a9e7958..fbf0fd83933fdaaa25a238b242221c5f3df5b2d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,18 +4,21 @@ python: ["2.7", "3.5"] dist: trusty sudo: True group: beta -services: [docker] env: - platform: openbsd60 - driver: vagrant - - &openbsd59 platform=openbsd59 driver=vagrant - - driver: docker - platform: all + - &openbsd59 platform=openbsd59 + - platform: xenial + - platform: trusty + - platform: precise + - &stretch platform=stretch + - platform: jessie + - platform: wheezy matrix: fast_finish: True allow_failures: - python: "3.5" - env: *openbsd59 + - env: *stretch cache: - pip - directories: @@ -32,7 +35,7 @@ install: script: - pre-commit run --all-files - - molecule test --driver $driver --platform $platform + - molecule test --platform $platform notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/README.rst b/README.rst index 13476c0b61ea213046f47e94fce63bc9301e2305..ddc2091af353d8adfa06408832c0a4a1bbde68d8 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/molecule.yml b/molecule.yml index f4cf89703bba002a9c5737acec356f8271c0ce86..ee741f0f7aded7b0015953564fd30340da1763a0 100644 --- a/molecule.yml +++ b/molecule.yml @@ -26,6 +26,8 @@ vagrant: box: ubuntu/trusty32 - name: precise box: hashicorp/precise32 + - name: stretch + box: remram/debian-9-i386 - name: jessie box: deb/jessie-i386 - name: wheezy @@ -43,47 +45,3 @@ vagrant: vm.provider "virtualbox" do |v| v.customize "pre-boot", ["modifyvm", :id, "--hwvirtex", "off"] end - -docker: - containers: - - name: deploy-key-xenial - image: ubuntu - image_version: xenial - command: /sbin/init - privileged: True - volume_mounts: - - /sys/fs/cgroup:/sys/fs/cgroup - - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket - environment: - DEBIAN_FRONTEND: noninteractive - container: docker - - name: deploy-key-trusty - image: ubuntu-upstart - image_version: trusty - environment: - DEBIAN_FRONTEND: noninteractive - container: docker - - name: deploy-key-precise - image: ubuntu - image_version: precise - environment: - DEBIAN_FRONTEND: noninteractive - container: docker - - name: deploy-key-jessie - image: debian - image_version: jessie - command: /sbin/init - cap_add: - - SYS_ADMIN - volume_mounts: - - /sys/fs/cgroup:/sys/fs/cgroup - - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket - environment: - DEBIAN_FRONTEND: noninteractive - container: docker - - name: deploy-key-wheezy - image: debian - image_version: wheezy - environment: - DEBIAN_FRONTEND: noninteractive - container: docker diff --git a/tests/requirements.txt b/tests/requirements.txt index f4cbfddce2bfb1c4aed0a59c2b32325c4f83b433..fc43b9a640a4f4c4c75292e61185d25556ae45e7 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.19.1 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 bcrypt==3.1.2