diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bdd66a8a7b7ff05b0c5cd683dc5fbd9fd0ed886d..1768281b3c727df0f9de5bc2588151618fa32be1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,19 @@ -image: python:3.6-alpine +image: python:3.6 +cache: + paths: + - .pip + +before_script: + - mkdir -p .pip + - pip install -U pip + - pip --cache-dir=.pip install sphinx + - pip --cache-dir=.pip install sphinx-autodoc-typehints + - pip --cache-dir=.pip install sphinx_rtd_theme + - pip --cache-dir=.pip install -r requirements.txt + pages: script: - - apk --no-cache add py3-pip python-dev - - pip install sphinx - - pip install sphinx-autodoc-typehints - - pip install sphinx_rtd_theme - - pip install -r requirements.txt - apk --no-cache add make - cd docs && make html - mv build/html/ public/