litecord/.gitlab-ci.yml

25 lines
461 B
YAML

image: python:3.7-alpine
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
services:
- postgres:alpine
cache:
paths:
- .cache/pip
tests:
before_script:
- python -V
- apk --update add --no-cache build-base python3.7-dev gcc libgcc
- pip3 install pipenv wheel tox
- pipenv install --dev
script:
- ls
- cp config.ci.py config.py
- pipenv run ./manage.py migrate
- pipenv run ./manage.py setup_tests
- tox