Commit d53a805f authored by Cresson Remi's avatar Cresson Remi
Browse files

Merge branch 'generate_doc_wth_ci' into 'develop'

ADD: generate doc in pages

Closes #2

See merge request !17
1 merge request!17ADD: generate doc in pages
Showing with 16 additions and 0 deletions
+16 -0
...@@ -5,6 +5,7 @@ workflow: ...@@ -5,6 +5,7 @@ workflow:
stages: stages:
- Static Analysis - Static Analysis
- Documentation
- Test - Test
# --------------------------------------------- Static analysis -------------------------------------------------------- # --------------------------------------------- Static analysis --------------------------------------------------------
...@@ -29,6 +30,20 @@ codespell: ...@@ -29,6 +30,20 @@ codespell:
script: script:
- sudo pip install codespell && codespell --skip="*.png,*.template,*.pbs,*.jpg,*git/lfs*" - sudo pip install codespell && codespell --skip="*.png,*.template,*.pbs,*.jpg,*git/lfs*"
# ------------------------------------------------------- Doc ----------------------------------------------------------
pages:
image: gitlab-registry.irstea.fr/remi.cresson/otbtf/otbtf3.0:cpu-basic-dev
stage: Documentation
allow_failure: false
script:
- sudo apt update && sudo apt install python3-pycurl
- sudo python3 -m pip install pytest pytest-cov pyotb rtree tqdm
- sudo pip3 install pdoc3
- pdoc3 --html scenes --output-dir public/
artifacts:
paths:
- public
# ------------------------------------------------------ Test ---------------------------------------------------------- # ------------------------------------------------------ Test ----------------------------------------------------------
.test_base: .test_base:
...@@ -52,3 +67,4 @@ indexation: ...@@ -52,3 +67,4 @@ indexation:
extends: .test_base extends: .test_base
script: script:
- pytest -o log_cli=true --log-cli-level=INFO --junitxml=report_indexation_test.xml test/indexation_test.py - pytest -o log_cli=true --log-cli-level=INFO --junitxml=report_indexation_test.xml test/indexation_test.py
Supports Markdown
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