diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..69cc43b389311de7f66b5249cf17661fe596e348 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,38 @@ +image: ubuntu:latest + +workflow: + rules: + - if: $CI_COMMIT_BRANCH + +cache: + key: $CI_COMMIT_REF_SLUG + +before_script: + - apt-get update + - apt-get upgrade -y + - apt-get install -y python3-pip + - pip install mkdocs-material + - pip install pymdown-extensions + - pip install mkdocs-minify-plugin + - pip install mkdocs-macros-plugin + +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 --verbose + artifacts: + paths: + - public + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH +