forked from oracle-samples/drgn-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (30 loc) · 1.06 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
# Copyright (c) 2023, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
[tox]
envlist = py36,py37,py38,py39,py310,py311
skip_missing_interpreters = true
[testenv]
# Allows us to use the system drgn, if it is present
sitepackages = true
deps =
-rrequirements-dev.txt
pytest-cov
commands =
python -m pytest --cov=drgn_tools --cov=tests --junitxml=test.xml -o junit_logging=all {posargs}
passenv = DRGNTOOLS_*, GITLAB_CI, GITHUB_ACTIONS
[testenv:docs]
deps =
-rrequirements-dev.txt
sphinx
sphinx-autodoc-typehints
sphinx-reference-rename
myst-parser
commands = sphinx-build -d "{toxworkdir}/docs_doctree" doc "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
[testenv:runner]
deps =
-r testing/requirements.txt
commands = {posargs}
passenv = VMCORE_*, GITLAB_CI, GITHUB_ACTIONS
[flake8]
max-line-length = 80