From 28a7111a1fee82491a435010dbb8913d62810a0d Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Sat, 16 Mar 2019 19:37:52 +0200 Subject: [PATCH] Compile docs and publish them as GitLab pages Signed-off-by: Vasilis Tsiligiannis --- .gitlab-ci.yml | 23 +++++++++++++++++++++++ docs/_static/.gitkeep | 0 2 files changed, 23 insertions(+) create mode 100644 docs/_static/.gitkeep diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 06fcdf4..4b48d61 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,19 @@ static_python: - pip install tox~=3.8.0 script: - tox -e flake8 +docs: + stage: build + image: python:2.7 + before_script: + - pip install sphinx_rtd_theme + script: + - cd docs + - make html SPHINXOPTS="-W" + artifacts: + expire_in: 1 week + when: always + paths: + - docs/_build/html build: stage: build image: python:2.7 @@ -111,3 +124,13 @@ trigger_latest: - tags variables: - $PIPELINE_TRIGGERS_LATEST +pages: + stage: deploy + image: alpine + script: + - mv docs/_build/html/ public/ + artifacts: + paths: + - public + only: + - tags diff --git a/docs/_static/.gitkeep b/docs/_static/.gitkeep new file mode 100644 index 0000000..e69de29