Fixes #186: Update tests to use Molecule 3.0 and lint manually.

This commit is contained in:
Jeff Geerling 2020-02-20 11:59:30 -06:00
parent 199a138c17
commit 77f39119bc
4 changed files with 5 additions and 14 deletions

View file

@ -16,7 +16,7 @@ env:
install:
# Install test dependencies.
- pip install molecule docker
- pip install molecule yamllint ansible-lint docker
before_script:
# Use actual Ansible Galaxy role name for the project directory.

View file

@ -3,10 +3,9 @@ dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
options:
config-file: molecule/default/yaml-lint.yml
lint: |
yamllint .
ansible-lint
platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
@ -17,13 +16,5 @@ platforms:
pre_build_image: true
provisioner:
name: ansible
lint:
name: ansible-lint
playbooks:
converge: ${MOLECULE_PLAYBOOK:-playbook.yml}
scenario:
name: default
verifier:
name: testinfra
lint:
name: flake8
converge: ${MOLECULE_PLAYBOOK:-converge.yml}