Skip to content
Snippets Groups Projects
Commit e0f93b18 authored by David Hrbáč's avatar David Hrbáč
Browse files

Cache pip

parent 40ff0cb3
Branches
No related tags found
No related merge requests found
...@@ -3,6 +3,9 @@ stages: ...@@ -3,6 +3,9 @@ stages:
- build - build
- deploy - deploy
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
docs: docs:
stage: test stage: test
image: davidhrbac/docker-mdcheck:latest image: davidhrbac/docker-mdcheck:latest
...@@ -40,7 +43,15 @@ ext_links: ...@@ -40,7 +43,15 @@ ext_links:
mkdocs: mkdocs:
stage: build stage: build
image: davidhrbac/docker-mkdocscheck:latest image: davidhrbac/docker-mkdocscheck:latest
cache:
paths:
- .cache/pip
- venv/
before_script: before_script:
- python -V # Print out python version for debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install -r requirements.txt - pip install -r requirements.txt
script: script:
- mkdocs -V - mkdocs -V
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment