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:
# Install test dependencies. # Install test dependencies.
- pip install molecule docker - pip install molecule yamllint ansible-lint docker
before_script: before_script:
# Use actual Ansible Galaxy role name for the project directory. # Use actual Ansible Galaxy role name for the project directory.

View file

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