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

build openAPI spec in tox step

parent 66b0c26b
No related branches found
No related tags found
No related merge requests found
Pipeline #83250 failed
This commit is part of merge request !34. Comments created here will be created in the context of that merge request.
...@@ -35,7 +35,9 @@ run-tox-pipeline: ...@@ -35,7 +35,9 @@ run-tox-pipeline:
script: script:
- pip install tox - pip install tox
- tox - tox
- python 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