blob: 50703052872d68daa22e2b025f9fc5b56ce82c53 [file] [log] [blame]
Mohammed Naser336caf42022-03-11 17:56:45 -05001# 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]
16requires = tox-ansible
17skipsdist = True
18
19[testenv]
Mohammed Naserb7b97d62022-03-12 16:30:00 -050020skipsdist = True
Mohammed Naser336caf42022-03-11 17:56:45 -050021passenv =
22 OS_*
23 TERM
Michiel Piscaer97b7fd32022-03-17 12:15:21 +010024 ATMOSPHERE_*
Mohammed Naserdd2f5912022-03-17 19:54:12 -040025commands_pre =
26 python3 {toxinidir}/tools/generate-galaxy-yml.py
27 ansible-galaxy collection install -f {toxinidir}
Mohammed Naserb7b97d62022-03-12 16:30:00 -050028
Mohammed Naser8f469a82022-03-14 18:17:42 -040029[testenv:build]
30deps =
31 ansible-core
32 pbr
33 pyyaml
34commands =
Mohammed Naser8f469a82022-03-14 18:17:42 -040035 ansible-galaxy collection build --force
36
Mohammed Naserb7b97d62022-03-12 16:30:00 -050037[testenv:molecule]
38deps =
39 ansible
40 molecule==3.5.2
41 -rmolecule/default/requirements.txt
42commands =
43 molecule {posargs}
Mohammed Naserab033e12022-03-13 21:07:28 -040044
45[testenv:docs]
46deps =
47 -r{toxinidir}/doc/requirements.txt
48commands =
Mohammed Naserc8e1a452022-08-11 16:16:13 -040049 sphinx-build -E -W -d doc/build/doctrees -b html doc/source/ doc/build/html