Commit d48460e1 authored by Vasilis Tsiligiannis's avatar Vasilis Tsiligiannis

tox: Add environment to build documentation

Signed-off-by: Vasilis Tsiligiannis's avatarVasilis Tsiligiannis <acinonyx@openwrt.gr>
parent c6668f66
......@@ -4,7 +4,6 @@ variables:
GITLAB_CI_IMAGE_PYTHON3: 'python:3'
GITLAB_CI_PYPI_TOX: 'tox~=3.8.0'
GITLAB_CI_PYPI_TWINE: 'twine~=1.13.0'
GITLAB_CI_PYPI_SPHINX_RTD_THEME: 'sphinx_rtd_theme~=0.4.0'
stages:
- static
- build
......@@ -28,10 +27,10 @@ docs:
stage: build
image: ${GITLAB_CI_IMAGE_PYTHON3}
before_script:
- pip install "$GITLAB_CI_PYPI_SPHINX_RTD_THEME" .
- pip install "$GITLAB_CI_PYPI_TOX"
script:
- cd docs
- make html SPHINXOPTS="-W"
- rm -rf docs/_build
- tox -e "docs"
artifacts:
expire_in: 1 week
when: always
......
[tox]
envlist = {py2,py3}-flake8,isort,yapf,{py2,py3}-{pylint,build},robot-lint,{py2,py3}-robot
envlist = {py2,py3}-flake8,isort,yapf,{py2,py3}-{pylint,build},docs,robot-lint,{py2,py3}-robot
[depversions]
flake8 = 3.7.7
......@@ -7,6 +7,7 @@ isort = 4.3.18
yapf = 0.27.0
pylint2 = 1.9.4
pylint3 = 2.3.1
sphinx_rtd_theme = 0.4.3
robotframework = 3.1.1
[testenv:py2-flake8]
......@@ -65,6 +66,13 @@ skip_install = True
commands =
python setup.py sdist bdist_wheel
[testenv:docs]
deps =
sphinx_rtd_theme=={[depversions]sphinx_rtd_theme}
changedir = {toxinidir}/docs
commands =
sphinx-build -b html . "_build/html"
[testenv:robot-lint]
deps =
robotframework=={[depversions]robotframework}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment