From 7e1a8826e8394f9b936dc1c05eaf3595578a260d Mon Sep 17 00:00:00 2001 From: Haibo Lin Date: Sep 02 2022 06:30:44 +0000 Subject: Add docs env to tox.ini Then docs will be build in CI job to make sure there's no error. JIRA: RHELCMP-9832 Signed-off-by: Haibo Lin --- diff --git a/tox.ini b/tox.ini index 6e17220..6ef7bc0 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py27, py3, flake8, bandit, black +envlist = py27, py3, flake8, bandit, black, docs [testenv:py3] install_command = pip install --force-reinstall --ignore-installed {packages} @@ -50,6 +50,18 @@ skip_install = true deps = black commands = black --check --diff client common server setup.py client/contrib/odcs server/contrib/odcs.wsgi server/contrib/odcs_test_deployment server/contrib/odcs-promote-compose +[testenv:docs] +basepython = python3 +skip_install = true +allowlist_externals=make +deps = + sphinx + sphinxcontrib-httpdomain>=1.8.0 +commands = make -C docs clean html +sitepackages = True +setenv = + PYTHONPATH = {envsitepackagesdir} + [flake8] exclude = .tox/*,