diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 168156c67edc397d03e7bce3df46d5fbed347291..d172029d19b58c7462038872c4190eb21ce14039 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,40 @@ # This file is a template, and might need editing before it works on your project. # Full project: https://gitlab.com/pages/plain-html -image: python:3.8-slim +#image: python:3.8-slim +# +#stages: +# - build -stages: - - build +#pages: +# script: +# - pip3 install -r requirements.txt +# - sphinx-build -b html docs/source/ public/ +# artifacts: +# paths: +# - public +# only: +# - master + +image: python:3.8-alpine + +test: + stage: test + script: + - pip install -U sphinx + - sphinx-build -b html . public + only: + - branches + except: + - master pages: + stage: deploy script: - - pip3 install -r requirements.txt - - sphinx-build -b html docs/source/ public/ + - pip install -U sphinx + - sphinx-build -b html . public artifacts: paths: - - public + - public only: - - master + - master