Skip to content
Snippets Groups Projects
Verified Commit f3e59974 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

build openAPI spec in tox step

parent 66b0c26b
Branches
Tags
No related merge requests found
Pipeline #83252 failed
...@@ -31,11 +31,13 @@ run-tox-pipeline: ...@@ -31,11 +31,13 @@ run-tox-pipeline:
- pip install virtualenv - pip install virtualenv
- virtualenv venv - virtualenv venv
- . venv/bin/activate - . venv/bin/activate
- pip install tox
script: script:
- pip install tox
- tox - tox
- python3 docs/dump-openapi-spec.py
artifacts: artifacts:
paths: paths:
- htmlcov - htmlcov
- docs/source/_static/openapi.json
...@@ -5,10 +5,12 @@ build-documentation: ...@@ -5,10 +5,12 @@ build-documentation:
tags: tags:
- docker-executor - docker-executor
image: sphinxdoc/sphinx:latest image: sphinxdoc/sphinx:latest
needs:
- job: run-tox-pipeline
artifacts: true
before_script: before_script:
- pip install sphinx_rtd_theme fastapi - pip install sphinx_rtd_theme
- python docs/dump-openapi-spec.py
script: script:
- sphinx-apidoc lso lso/app.py -o docs/source -d 2 -f - sphinx-apidoc lso lso/app.py -o docs/source -d 2 -f
- sphinx-build -b html docs/source docs/build - sphinx-build -b html docs/source docs/build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment