-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
38 lines (35 loc) · 971 Bytes
/
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
[tox]
envlist = test,lint,docs
toxworkdir={env:TEMPDIR:/tmp/.tox}-{env:JOB_NAME:build}-{env:BUILD_NUMBER:current}/{env:BUILD_ID:unknown}
[testenv]
basepython = {env:PYTHON:python3.9}
deps =
-rtests-requirements.txt
-rrequirements.txt
commands =
coverage erase
coverage run -m pytest -vv --benchmark-disable --junitxml=junit-{envname}.xml --ignore={toxworkdir}
coverage report --omit={toxworkdir}/*
coverage html --directory=coverage-{envname} --omit={toxworkdir}/*
# Linter environment
[testenv:lint]
deps =
-rtests-requirements.txt
-rrequirements.txt
allowlist_externals = bash
commands =
pylama _modules/ _utils/ _states/
black _modules/ _utils/ _states/ --check
bash lint-sls.sh
[testenv:docs]
changedir = docs
deps =
protobuf==3.19.4
salt
sphinx
sphinx-rtd-theme
-rrequirements.txt
allowlist_externals = sh
commands =
sh ./build_mods_doc.sh
sphinx-build -W -b html -d _build/doctrees . _build/html