Update the .gitlab-ci.yml to install dev packages and cache properly
This commit is contained in:
parent
c9f66eb91c
commit
f7fbf49e1e
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue