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

View file

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