-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
61 lines (57 loc) · 1.67 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[tox]
minversion = 1.6
envlist = py27
skipdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:docs]
commands =
ansible-galaxy install -r ansible-role-requirements.yml --ignore-errors
sphinx-build docs docs/build {posargs}
[testenv:ansible-lint]
basepython = python3
allowlist_externals = bash
commands =
ansible-galaxy role install -r ansible-role-requirements.yml --ignore-errors
ansible-galaxy collection install -r ansible-role-requirements.yml --ignore-errors
bash -c "find . -type f ! -path '*playbooks/roles/*' ! -path '*.tox/*' -regex '.*.y[a]?ml' ! -path '*playbooks/dlrn-api-report.yml' -print0 | xargs -t -n1 -0 ansible-lint -x ANSIBLE0006,ANSIBLE0010,ANSIBLE0011,ANSIBLE0012,ANSIBLE0013,ANSIBLE0014,ANSIBLE0019"
setenv =
ANSIBLE_CONFIG = {toxinidir}/playbooks/ansible.cfg
PYTHONUNBUFFERED = 1
[testenv:ansible-playbook]
basepython = python3
commands =
ansible-galaxy role install -r ansible-role-requirements.yml --ignore-errors
ansible-galaxy collection install -r ansible-role-requirements.yml --ignore-errors
ansible-playbook {posargs}
passenv =
HOME
SSH_AUTH_SOCK
USER
ARA_DATABASE
ARA_DATABASE_NAME
CICO_API_KEY
CICO_SSH_KEY
JENKINS_URL
BUILD_URL
JOB_NAME
BUILD_NUMBER
DLRNAPI_USER
DLRNAPI_PASSWD
DLRNAPI_URL
COMMIT_HASH
DISTRO_HASH
AGG_HASH
INFO_URL
JOB_SUCCESS
ANSIBLE_SSH_RETRIES
ANSIBLE_PYTHON_INTERPRETER
WORKSPACE
DESTINATION
LOG_DISPLAY_URL
setenv =
ANSIBLE_CONFIG = {toxinidir}/playbooks/ansible.cfg
PYTHONUNBUFFERED = 1