Commit 5bc51625 authored by Boris Budini's avatar Boris Budini 🛡

New CI

parent 5d599858
Pipeline #580 failed with stages
in 18 seconds
stages:
- build
- deploy
build:html:
image: kominoshja/c68-sphinx:latest
stage: build
script:
- git clone https://github.com/Blendify/sphinx-bootstrap-directives.git
- cd sphinx-bootstrap-directives
- python setup.py build
- python setup.py install
- cd docs
- rm -Rf source
- cd ../..
- git clone https://git.collective68.tech/works/read-the-docs/collective68/offline-version.git _themes/sphinx_rtd_theme
- make html
- cd _build/html
- rm -rf objects.inv .doctrees _raw_sources sphinx-bootstrap-directives .buildinfo
- zip -r documentation.zip .
- mv documentation.zip ../..
artifacts:
paths:
- documentation.zip
pages:
image: kominoshja/c68-sphinx:latest
stage: deploy
script:
- apk --no-cache add py-pip python-dev git make
- pip install sphinx guzzle_sphinx_theme recommonmark markdown m2r sphinx_rtd_theme
- git clone https://github.com/Blendify/sphinx-bootstrap-directives.git
- cd sphinx-bootstrap-directives
- python setup.py build
......@@ -9,25 +34,16 @@ pages:
- cd docs
- rm -Rf source
- cd ../..
- git clone https://git.collective68.tech/works/read-the-docs/collective68/online-version.git _themes/sphinx_rtd_theme
- make html
- sphinx-build -b pdf . _build/html/
- mv _build/html public
- mv documentation.zip public
- rm -rf public/objects.inv public/.doctrees public/_raw_sources public/sphinx-bootstrap-directives public/.buildinfo
dependencies:
- build:html
artifacts:
paths:
- public
only:
- master
compile_pdf:
image: aergus/latex
script:
- wget -L https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install sphinx guzzle_sphinx_theme recommonmark markdown m2r sphinx_rtd_theme
- make latex
- make latexpdf
- mv _build/latex/FabAcademy2018.pdf FabAcademy2018.pdf
artifacts:
paths:
- FabAcademy2018.pdf
only:
- master
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