.gitlab-ci.yml 568 Bytes
Newer Older
Luna's avatar
Luna committed
1 2
image: python:3.7-alpine

3 4 5
variables:
  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

Luna's avatar
Luna committed
6 7 8
services:
  - postgres:alpine

9 10 11 12
cache:
  paths:
    - .cache/pip

Luna's avatar
Luna committed
13 14 15
tests:
  before_script:
    - python -V
16
    - apk --update add --no-cache build-base gcc libgcc libffi-dev openssl-dev git postgresql-client jpeg-dev openjpeg-dev zlib-dev freetype-dev lcms2-dev freetype-dev gifsicle
Luna's avatar
Luna committed
17
    - pip3 install pipenv wheel tox
18
    - pipenv install --dev
Luna's avatar
Luna committed
19 20 21 22 23 24
  script:
    - ls
    - cp config.ci.py config.py
    - pipenv run ./manage.py migrate
    - pipenv run ./manage.py setup_tests
    - tox