Skip to content

Commit

Permalink
Fixes #186: Update tests to use Molecule 3.0 and lint manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Feb 20, 2020
1 parent 199a138 commit 77f3911
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
File renamed without changes.
File renamed without changes.
17 changes: 4 additions & 13 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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}

0 comments on commit 77f3911

Please sign in to comment.