Update the .gitlab-ci.yml to install dev packages and cache properly

This commit is contained in:
Danielle McLean 2018-06-04 09:21:23 +10:00
parent c9f66eb91c
commit f7fbf49e1e
1 changed files with 5 additions and 5 deletions

View File

@ -1,16 +1,16 @@
image: python:3.6
variables:
GIT_SUBMODULE_STRATEGY: normal
PIP_CACHE_DIR: $CI_PROJECT_DIR/.pip-cache
PIPENV_VENV_IN_PROJECT: yeppers
PIP_CACHE_DIR: $CI_PROJECT_DIR/.cache/pip
PIPENV_CACHE_DIR: $CI_PROJECT_DIR/.cache/pipenv
cache:
paths:
- .pip-cache
- .venv
- $PIP_CACHE_DIR
- $PIPENV_CACHE_DIR
test:
script:
- pip install pipenv
- pipenv install
- pipenv sync --dev
- pipenv run pytest