ci: Enable sphinx-generated documentation deployment on main branch
This commit is contained in:
parent
cc37891bf6
commit
6a3c2b014c
@ -4,6 +4,7 @@ stages:
|
|||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- static_analyze
|
- static_analyze
|
||||||
|
- doc
|
||||||
|
|
||||||
build_release:
|
build_release:
|
||||||
stage: build
|
stage: build
|
||||||
@ -22,6 +23,23 @@ test:
|
|||||||
script:
|
script:
|
||||||
- ./build/test/testTug
|
- ./build/test/testTug
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: doc
|
||||||
|
image: python:slim
|
||||||
|
before_script:
|
||||||
|
- apt-get update && apt-get install --no-install-recommends -y graphviz imagemagick doxygen make
|
||||||
|
- pip install --upgrade pip && pip install Sphinx Pillow breathe sphinx-rtd-theme
|
||||||
|
- mkdir public
|
||||||
|
script:
|
||||||
|
- pushd docs_sphinx
|
||||||
|
- make html
|
||||||
|
- popd && mv docs_sphinx/_build/html/* public/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
stage: static_analyze
|
stage: static_analyze
|
||||||
before_script:
|
before_script:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user