Skip to content
Snippets Groups Projects
Commit 67ad7f46 authored by Matteo Michele Piazzolla's avatar Matteo Michele Piazzolla
Browse files

CI: generate and publish the documentation

The documentation is generated invoking the Doxyfile and is than
moved to /srv/code_documentation on the gitlab server replacing the
previous documentation of the same project and same branch.
Folder are structured so that is possible to publish documentation
(or other files) from the pipeline execution of different projects
and different branches.
The documentation is reachable via https://documentation.skywarder.eu/
parent 74f6bf9f
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,16 @@ test2:
- echo "For example run a lint test"
- ./scripts/linter.sh
documentation:
stage: deploy
script:
- echo "Generate documentation to https://documentation.skywarder.eu/${CI_PROJECT_NAME}/${CI_COMMIT_REF_NAME}"
- rm -rf doc/output
- doxygen doc/Doxyfile
- rm -rf /srv/code_documentation/${CI_PROJECT_NAME}/${CI_COMMIT_REF_NAME}
- mkdir -p /srv/code_documentation/${CI_PROJECT_NAME}/
- mv doc/output/html /srv/code_documentation/${CI_PROJECT_NAME}/${CI_COMMIT_REF_NAME}
deploy1:
stage: deploy
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment