From e15dfb58628f57134bda5d6d9dc43fd03e7e6ef1 Mon Sep 17 00:00:00 2001 From: Hammouda Elbez <hammouda.elbez@univ-lille.fr> Date: Thu, 29 Sep 2022 07:27:13 +0200 Subject: [PATCH] Added files for Gitlab pages --- gitlab-ci.yml | 24 ++++++++++++++++++++++++ requirements.txt | 6 ++++++ 2 files changed, 30 insertions(+) create mode 100644 gitlab-ci.yml create mode 100644 requirements.txt diff --git a/gitlab-ci.yml b/gitlab-ci.yml new file mode 100644 index 0000000..c892a4c --- /dev/null +++ b/gitlab-ci.yml @@ -0,0 +1,24 @@ +image: python:3.8-buster + +before_script: + - pip install -r requirements.txt + +test: + stage: test + script: + - mkdocs build --strict --verbose --site-dir test + artifacts: + paths: + - test + rules: + - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH + +pages: + stage: deploy + script: + - mkdocs build --strict --verbose + artifacts: + paths: + - public + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c18b9e9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +# Documentation static site generator & deployment tool +mkdocs>=1.1.2 + +# Add your custom theme if not inside a theme_dir +# (https://github.com/mkdocs/mkdocs/wiki/MkDocs-Themes) +# mkdocs-material>=5.4.0 -- GitLab