Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
More fixes (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Apr 8, 2022
1 parent b95047c commit b624962
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
tasks:
# replace these tasks with whatever you find suitable to test
- name: Copy something to test use of synchronize module
ansible.posix.synchronize:
ansible.builtin.copy:
src: /etc/hosts
dest: /tmp/hosts-from-controller
# synchronize module works with podman connections only with 2.11+ so
# we skip running it on unsupported platforms.
when: "ansible_version.full is version_compare('2.11', '>=')"
- name: "Include {{ cookiecutter.role_name }}"
ansible.builtin.include_role:
name: "{{ cookiecutter.role_name }}"
2 changes: 1 addition & 1 deletion src/molecule_podman/playbooks/validate-dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# not mean molecule itself can run on them.
- image: alpine:edge
- image: centos:7
- image: centos:8
# - image: centos:8
- image: ubuntu:latest
- image: debian:latest
tasks:
Expand Down
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ deps =
ansible212: ansible-core>=2.12.4,<2.13.0
dockerfile: ansible-core>=2.12.4
selinux
commands_pre =
# No need to bother starting tests if these are now working
- podman system connection list
- podman info
commands =
# this should mention oldest version we find acceptable for runtime
ansible-galaxy collection install -r requirements.yml
Expand All @@ -57,11 +61,13 @@ commands =
whitelist_externals =
ansible-galaxy
find
podman
rm
sh

[testenv:lint]
description = Runs all linting tasks
commands_pre =
commands =
# to run a single linter you can do "pre-commit run flake8"
python -m pre_commit run {posargs:--all}
Expand All @@ -76,6 +82,7 @@ description = Invoke sphinx-build to build the HTML docs
basepython = python3
passenv = *
usedevelop = False
commands_pre =
commands =
python -m sphinx \
-a -n -W \
Expand All @@ -95,6 +102,7 @@ description = Invoke sphinx-autobuild to build and reload the HTML docs
basepython = {[testenv:docs]basepython}
passenv = {[testenv:docs]passenv}
usedevelop = {[testenv:docs]usedevelop}
commands_pre =
commands =
python -m sphinx_autobuild docs/ "{toxworkdir}/docs/html"
deps =
Expand All @@ -117,6 +125,7 @@ deps =
toml >= 0.10.1
twine >= 3.2.0 # pyup: ignore
setenv =
commands_pre =
commands =
rm -rfv {toxinidir}/dist/
python -m pep517.build \
Expand Down

0 comments on commit b624962

Please sign in to comment.