lemoncurry/.gitlab-ci.yml

23 lines
439 B
YAML
Raw Normal View History

image: python:3.6
services:
- postgres:latest
variables:
GIT_SUBMODULE_STRATEGY: normal
PIP_CACHE_DIR: $CI_PROJECT_DIR/.cache/pip
PIPENV_CACHE_DIR: $CI_PROJECT_DIR/.cache/pipenv
POSTGRES_HOST: postgres
POSTGRES_DB: nice_marmot
POSTGRES_USER: runner
POSTGRES_PASSWORD: ''
cache:
paths:
- $PIP_CACHE_DIR
- $PIPENV_CACHE_DIR
test:
script:
- pip install pipenv
- pipenv sync --dev
- pipenv run pytest