From 3632e0cade48caaae69b571ccf49ffb5d912a694 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Wed, 2 Mar 2022 15:50:59 +0100 Subject: [PATCH] Adjust Pipeline config to use poetry for docs --- .gitlab-ci.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10f56439e..ee9d66e12 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,7 +67,7 @@ review_docs: stage: review when: manual allow_failure: true - image: python:3.6 + image: python:3.10 variables: BUILD_PATH: "../docs-review" before_script: @@ -75,8 +75,12 @@ review_docs: - mkdir docs-review - cd docs - apt-get update - - apt-get install -y graphviz - - pip install sphinx sphinx_rtd_theme django-environ django myst-parser sphinx-panels + - apt-get install -y graphviz git + - pip install poetry + - poetry install + - git switch develop + - git switch stable + - git switch $CI_COMMIT_BRANCH script: - ./build_docs.sh cache: @@ -272,14 +276,16 @@ build_front: pages: stage: test - image: python:3.6 + image: python:3.10 variables: BUILD_PATH: "../public" before_script: - cd docs - apt-get update - - apt-get install -y graphviz - - pip install sphinx sphinx_rtd_theme django-environ django myst-parser sphinx-panels + - apt-get install -y graphviz git + - pip install poetry + - poetry install + - git fetch origin develop && git fetch origin stable script: - ./build_docs.sh cache: