Adjust Pipeline config to use poetry for docs
This commit is contained in:
parent
bedfcdcf19
commit
2031babf64
|
@ -67,7 +67,7 @@ review_docs:
|
||||||
stage: review
|
stage: review
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
image: python:3.6
|
image: python:3.10
|
||||||
variables:
|
variables:
|
||||||
BUILD_PATH: "../docs-review"
|
BUILD_PATH: "../docs-review"
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -75,8 +75,12 @@ review_docs:
|
||||||
- mkdir docs-review
|
- mkdir docs-review
|
||||||
- cd docs
|
- cd docs
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y graphviz
|
- apt-get install -y graphviz git
|
||||||
- pip install sphinx sphinx_rtd_theme django-environ django
|
- pip install poetry
|
||||||
|
- poetry install
|
||||||
|
- git switch develop
|
||||||
|
- git switch stable
|
||||||
|
- git switch $CI_COMMIT_BRANCH
|
||||||
script:
|
script:
|
||||||
- ./build_docs.sh
|
- ./build_docs.sh
|
||||||
cache:
|
cache:
|
||||||
|
@ -238,14 +242,16 @@ build_front:
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: test
|
stage: test
|
||||||
image: python:3.6
|
image: python:3.10
|
||||||
variables:
|
variables:
|
||||||
BUILD_PATH: "../public"
|
BUILD_PATH: "../public"
|
||||||
before_script:
|
before_script:
|
||||||
- cd docs
|
- cd docs
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y graphviz
|
- apt-get install -y graphviz git
|
||||||
- pip install sphinx sphinx_rtd_theme django-environ django
|
- pip install poetry
|
||||||
|
- poetry install
|
||||||
|
- git fetch origin develop && git fetch origin stable
|
||||||
script:
|
script:
|
||||||
- ./build_docs.sh
|
- ./build_docs.sh
|
||||||
cache:
|
cache:
|
||||||
|
|
Loading…
Reference in New Issue