Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 1 | # Copyright (c) 2022 VEXXHOST, Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | [tox] |
| 16 | requires = tox-ansible |
| 17 | skipsdist = True |
| 18 | |
| 19 | [testenv] |
Mohammed Naser | b7b97d6 | 2022-03-12 16:30:00 -0500 | [diff] [blame] | 20 | skipsdist = True |
Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 21 | passenv = |
| 22 | OS_* |
| 23 | TERM |
Michiel Piscaer | 97b7fd3 | 2022-03-17 12:15:21 +0100 | [diff] [blame] | 24 | ATMOSPHERE_* |
Mohammed Naser | dd2f591 | 2022-03-17 19:54:12 -0400 | [diff] [blame] | 25 | commands_pre = |
| 26 | python3 {toxinidir}/tools/generate-galaxy-yml.py |
| 27 | ansible-galaxy collection install -f {toxinidir} |
Mohammed Naser | b7b97d6 | 2022-03-12 16:30:00 -0500 | [diff] [blame] | 28 | |
Mohammed Naser | 511c3fa | 2022-03-17 17:54:10 -0400 | [diff] [blame] | 29 | [testenv:linters] |
| 30 | deps = |
| 31 | {[testenv:build]deps} |
| 32 | ansible-lint |
| 33 | commands = |
| 34 | ansible-lint {toxinidir}/roles {posargs} |
| 35 | |
Mohammed Naser | 8f469a8 | 2022-03-14 18:17:42 -0400 | [diff] [blame] | 36 | [testenv:build] |
| 37 | deps = |
| 38 | ansible-core |
| 39 | pbr |
| 40 | pyyaml |
| 41 | commands = |
Mohammed Naser | 8f469a8 | 2022-03-14 18:17:42 -0400 | [diff] [blame] | 42 | ansible-galaxy collection build --force |
| 43 | |
Mohammed Naser | b7b97d6 | 2022-03-12 16:30:00 -0500 | [diff] [blame] | 44 | [testenv:molecule] |
| 45 | deps = |
| 46 | ansible |
| 47 | molecule==3.5.2 |
| 48 | -rmolecule/default/requirements.txt |
| 49 | commands = |
| 50 | molecule {posargs} |
Mohammed Naser | ab033e1 | 2022-03-13 21:07:28 -0400 | [diff] [blame] | 51 | |
| 52 | [testenv:docs] |
| 53 | deps = |
| 54 | -r{toxinidir}/doc/requirements.txt |
| 55 | commands = |
| 56 | sphinx-build -E -W -d doc/build/doctrees -b html doc/source/ doc/build/html |