Skip to content
Snippets Groups Projects
Commit bdf98bba authored by schmittu's avatar schmittu :beer:
Browse files

[CI][DOCS] fix .gitlab-ci.yml

parent 0b710b64
No related branches found
No related tags found
No related merge requests found
Pipeline #2085 failed
......@@ -58,11 +58,16 @@ ubuntu_20_04:
update_docs:
stage: update_docs
image: sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_20_04_for_emzed
tags:
- docker-executor
script:
- pyenv local $(latest_python 3.7)
- tox -e docs
- cp -R htmlcov docs/_build/html
- rsync -r docs/_build/html/* emzed.ethz.ch:htdocs/3/emzed.ext.mzmine2/
- pip install --extra-index-url https://pypi-sissource.ethz.ch/simple emzed3
- pip install -e .
- pip install -r requirements_dev.txt
- make build_docs
- chmod 0600 ${SSH_PRIVATE_KEY}
- scp -r -i ${SSH_PRIVATE_KEY} -o 'StrictHostKeyChecking no' docs/_build/html/* w3_emzed2@emzed.ethz.ch:htdocs/3/emzed.ext.mzmine2
dependencies:
- ubuntu_20_04
rules:
......
......@@ -37,12 +37,23 @@ coverage:
coverage html
open htmlcov/index.html
docs:
rm -f docs/emzed.ext.mzmine2*.rst
sphinx-apidoc --implicit-namespaces -e -o docs/ src/emzed_ext_mzmine2/
build_docs:
sphinx-apidoc --implicit-namespaces -e -o docs -f src/emzed_ext_mzmine2/
$(MAKE) -C docs clean
$(MAKE) -C docs html
cp -R htmlcov docs/_build/html
update_docs:
$(MAKE) -C docs clean
$(MAKE) -C docs html
cp -R htmlcov docs/_build/html
deploy_docs: update_docs
scp -r docs/_build/html/* w3_emzed2@emzed.ethz.ch:htdocs/3/emzed.ext.mzmine2
docs: build_docs
open docs/_build/html/index.html
sdist: clean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment