Skip to content

Commit

Permalink
Fix tox.ini
Browse files Browse the repository at this point in the history
It leverages upper constraints and an updated jjb.

Change-Id: I890acf8bf36a447e2fcd137cd1cd9e54d7cf5937
Signed-off-by: Cédric Ollivier <[email protected]>
  • Loading branch information
collivier committed Dec 9, 2022
1 parent 4978657 commit a4d75e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion jjb/releng/releng-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
-o DPkg::Lock::Timeout=300 dist-upgrade -y
sudo DEBIAN_FRONTEND=noninteractive \
apt-get -o DPkg::Lock::Timeout=300 install tox -y
tox
tox --recreate
- parameter:
name: releng-tox-slave
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt → test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
lfdocs-conf
sphinxcontrib-httpdomain
sphinx-opnfv-theme
jenkins-job-builder
25 changes: 9 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,24 @@
# and then run "tox" from this directory.

[tox]
envlist = jjb,docs,docs-linkcheck
envlist = jjb,docs
skipsdist = True

[testenv]
basepython = python3.10
usedevelop = False
setenv=
HOME = {envtmpdir}
PYTHONPATH = {toxinidir}
deps =
-chttps://opendev.org/openstack/requirements/raw/branch/stable/zed/upper-constraints.txt
-r{toxinidir}/test-requirements.txt

[testenv:jjb]
basepython = python3
deps =
jenkins-job-builder==2.5.0
commands=
jenkins-jobs test -o job_output -r {posargs:"jjb/"}
jenkins-jobs test -o {envtmpdir}/job_output -r {toxinidir}/jjb

[testenv:docs]
basepython = python3
deps = -r{toxinidir}/docs/requirements.txt
commands =
sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals = echo
sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/html

[testenv:docs-linkcheck]
basepython = python3
deps = -r{toxinidir}/docs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/linkcheck
commands =
sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/linkcheck

0 comments on commit a4d75e3

Please sign in to comment.