Skip to content

Commit

Permalink
fix: tests.
Browse files Browse the repository at this point in the history
Some dependencies changed over time. All of this needs to be moved to
GitHub Actions at some point.
  • Loading branch information
Filip Chabik committed Feb 7, 2022
1 parent 7bba3f3 commit 8213a8d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
language: python
python:
- "3.9"
services: docker
dist: focal

env:
matrix:
Expand All @@ -9,7 +12,7 @@ env:
- MOLECULE_DISTRO: debian11

install:
- pip install molecule yamllint ansible-lint docker
- pip install ansible docker molecule-docker

script:
- molecule test
Expand Down
8 changes: 0 additions & 8 deletions .yamllint

This file was deleted.

3 changes: 2 additions & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- name: test all the things
hosts: all
become: true

pre_tasks:
- apt: update_cache=yes
roles:
- role: ansible-role-restic
10 changes: 3 additions & 7 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ driver:
name: docker
platforms:
- name: instance
image: geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1804}-ansible
image: 'geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest'
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
pre_build_image: true
provisioner:
name: ansible
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
scenario:
name: default
lint: |
set -e
yamllint .
ansible-lint

0 comments on commit 8213a8d

Please sign in to comment.