From a6f5dd026c6a0026c3ba430776bee49f3ed0e585 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Thu, 13 Jun 2019 14:50:31 +0200 Subject: [PATCH] Restored review app for docs --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f02a194a..cc53bc65 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,6 +55,39 @@ review_front: url: http://$CI_PROJECT_NAMESPACE.pages.funkwhale.audio/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/front-review/index.html +review_docs: + stage: review + when: manual + allow_failure: true + image: python:3.6 + variables: + BUILD_PATH: "../docs-review" + before_script: + - rm -rf docs-review + - mkdir docs-review + - cd docs + - apt-get update + - apt-get install -y graphviz + - pip install sphinx + script: + - ./build_docs.sh + cache: + key: "$CI_PROJECT_ID__sphinx" + paths: + - "$PIP_CACHE_DIR" + artifacts: + expire_in: 2 weeks + paths: + - docs-review + only: + - branches + tags: + - docker + environment: + name: review/docs/$CI_COMMIT_REF_NAME + url: http://$CI_PROJECT_NAMESPACE.pages.funkwhale.audio/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/docs-review/index.html + + black: image: python:3.6 stage: lint -- GitLab