Commit graph

9 commits

Author SHA1 Message Date
Rich Megginson
e109d52e77 use molecule v3, drop v2 - use tox-lsr 2.1.2
Switch to molecule v3.  This drops support for v2.
This requires tox-lsr 2 or later.
Upgrade to tox-lsr 2.1.2 to pick up fix for collection dependency
on python six.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2021-02-10 15:26:04 -06:00
Rich Megginson
ba932115fb remove ansible 2.7 support from molecule
ansible 2.7 has been deprecated
https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html
We need to remove ansible 2.7 from molecule testing in order to
* make room for ansible 2.10 testing
* move to molecule v3

ansible 2.8 and later support platform-python on el8 and later
so we don't have to handle that case explicitly by setting
ansible_python_interpreter for centos8 in molecule.yml

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2021-02-09 11:44:13 -06:00
Rich Megginson
977f149f1e Fix centos6 repos; use standard centos images; add centos8
Use the new vault.centos.org repos.  Fix the yum repo configs in the
image if necessary to use these new repos.
Use the standard centos images from the centos registry rather than
custom lsr images from dockerhub.
Add support for centos8.  Note that using ansible 2.7 on centos8
requires setting /usr/bin/python3 to be the ansible python
interpreter.  Later versions of ansible have better auto-detection.
We can get rid of this once we drop support for ansible 2.7
Use tox-lsr 1.0.1 - which means we do not need
molecule_extra_requirements.txt

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2021-01-13 23:43:11 +08:00
Rich Megginson
4f9f7a4c94 make CI work with tox-lsr
Use tox-lsr instead of the scripts in the `.travis/` directory and the
asssociated config files.  Yes, `.travis/custom.sh` is still there,
but once you are familiar with the way that tox-lsr works, you can
remove it and use your own custom tox.ini action.  The goal of this
commit was to make as few changes as possible, to keep feature parity
with the old `.travis/` script way of running CI.  Also note that
linting has moved into tox, so we needed to disable molecule linting.
The new version of ansible-lint adds a lot of checks, so these are
disabled for now, and should be fixed later.  Also, shellcheck is
turned off until the network team can address the issues.

The `.travis/custom.sh` script is not run in the CI environment, so
this was changed slightly to remove the check for `$TRAVIS`, and it is
no longer run as a tox testenv in CI.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2020-12-18 10:32:16 +08:00
Till Maas
d32f4e5a7b molecule/tox: Support yamllint without molecule
With molecule v3, the linter config needs to be changed. To prepare for
this, run yamllint with tox as molecule would do it for V3.
2020-03-24 13:55:27 +01:00
systemroller
5a5ae4b662 Synchronize files from linux-system-roles/template 2020-02-25 22:09:32 +01:00
Jiri Kucera
6b241e707a molecule/yamllint: Enable line-length check 2019-11-27 18:22:57 +01:00
Jiri Kucera
198c21681c molecule: Add SPDX identifier 2019-11-27 18:22:18 +01:00
Vitezslav Crhonek
de194e7833 Add molecule configuration 2019-05-06 11:08:44 +02:00