-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
26 lines (23 loc) · 1.07 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[tox]
minversion = 1.6
envlist = docs
skipdist = True
[testenv]
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:linters]
whitelist_externals = bash
commands =
# NOTE (dmsimard): Having openshift-ansible in-tree when installing the module makes this super slow
# https://bugs.launchpad.net/pbr/+bug/1778752
bash -c "rm -rf {toxinidir}/roles/openshift"
bash -c "git clone https://github.com/rdo-infra/openshift-ansible roles/openshift/openshift-ansible; pushd roles/openshift/openshift-ansible; git checkout rdo-3.11-dns-mismatch; popd"
ansible-lint --exclude=roles/openshift --exclude=tests/ --exclude=playbooks/host_vars --exclude=playbooks/group_vars --exclude=.cache --exclude=../../../../.cache --exclude=../../.cache --exclude=../../../.cache/
bash -c "rm -rf {toxinidir}/roles/openshift"
setenv =
PYTHONUNBUFFERED = 1
ANSIBLE_ROLES_PATH = roles/rdo-infra
[testenv:docs]
deps = -r{toxinidir}/doc-requirements.txt
commands = sphinx-build -b html doc/source doc/build/html