.gitlab-ci.yml: add db initalization

This commit is contained in:
Luna Mendes 2018-11-13 04:23:00 -03:00
parent 797810df2c
commit 5aa1713133
1 changed files with 2 additions and 1 deletions

View File

@ -13,12 +13,13 @@ cache:
tests:
before_script:
- python -V
- apk --update add --no-cache build-base gcc libgcc libffi-dev openssl-dev git
- apk --update add --no-cache build-base gcc libgcc libffi-dev openssl-dev git postgresql-client
- pip3 install pipenv wheel tox
- pipenv install --dev
script:
- ls
- cp config.ci.py config.py
- psql -U postgres -f schema.sql
- pipenv run ./manage.py migrate
- pipenv run ./manage.py setup_tests
- tox