diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d8ff33238c6b2d5e20bab97b463ad991db13894..8fb1c781a539262d438d1508bce414f227552d10 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,7 +35,9 @@ run-tox-pipeline: script: - pip install tox - tox + - python docs/dump-openapi-spec.py artifacts: paths: - htmlcov + - docs/source/_static/openapi.json diff --git a/docs/.gitlab-ci.yml b/docs/.gitlab-ci.yml index 02cfc2d9b3514a9a2deeca1e36f673e79b029e12..221a7277606d622b88a43f91661ef352c128bfc4 100644 --- a/docs/.gitlab-ci.yml +++ b/docs/.gitlab-ci.yml @@ -5,10 +5,12 @@ build-documentation: tags: - docker-executor image: sphinxdoc/sphinx:latest + needs: + - job: run-tox-pipeline + artifacts: true before_script: - - pip install sphinx_rtd_theme fastapi - - python docs/dump-openapi-spec.py + - pip install sphinx_rtd_theme script: - sphinx-apidoc lso lso/app.py -o docs/source -d 2 -f - sphinx-build -b html docs/source docs/build