ansible-role-lunasa-hsm/tox.ini
Dave Wilde (d34dh0r53) 26da379c3a Remove use of ansible_fqdn
The ansible_fqdn fact is no longer passed into the individual roles
in order to speed up deployments [0].  This changes alters the role
to use ansible_facts['fqdn'] which is the same.

* Updated tox.ini to include requirements.txt as well
* Updated tox.ini to skip no-changed-when error

[0]: https://bugs.launchpad.net/tripleo/+bug/1915761

Related-Bug: 1915761
Change-Id: I1314b0e39c4a36740c8ef0c867bbc6fe60409289
2021-06-02 14:43:41 -05:00

18 lines
526 B
INI

[tox]
minversion = 2.0
envlist = linters
skipsdist = true
[testenv]
basepython = python3
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:linters]
# We ignore 106 because the role name is inferred from the directory name as
# "lunasa-hsm", but the role is actually installed as "lunasa_hsm"
# (see setup.cfg). We would need to rename the repository to fix this without
# ignoring it.
# TODO(redrobot): Don't ignore 301
commands = ansible-lint -x 106,301,no-changed-when {toxinidir}