| # Copyright (c) 2022 VEXXHOST, Inc. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| # not use this file except in compliance with the License. You may obtain |
| # a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| # License for the specific language governing permissions and limitations |
| # under the License. |
| |
| [tox] |
| requires = tox-ansible |
| skipsdist = True |
| |
| [testenv] |
| skipsdist = True |
| passenv = |
| OS_* |
| TERM |
| ATMOSPHERE_* |
| commands_pre = |
| python3 {toxinidir}/tools/generate-galaxy-yml.py |
| ansible-galaxy collection install -f {toxinidir} |
| |
| [testenv:linters] |
| deps = |
| {[testenv:build]deps} |
| ansible-lint==6.4.0 |
| commands = |
| ansible-lint {toxinidir}/roles {posargs} |
| |
| [testenv:build] |
| deps = |
| ansible-core |
| pbr |
| pyyaml |
| commands = |
| ansible-galaxy collection build --force |
| |
| [testenv:molecule] |
| deps = |
| ansible |
| molecule==3.5.2 |
| -rmolecule/default/requirements.txt |
| commands = |
| molecule {posargs} |
| |
| [testenv:docs] |
| deps = |
| -r{toxinidir}/doc/requirements.txt |
| commands = |
| sphinx-build -E -W -d doc/build/doctrees -b html doc/source/ doc/build/html |