mirror of https://gitlab.com/litecord/litecord.git
.gitlab-ci.yml: add db initalization
This commit is contained in:
parent
797810df2c
commit
5aa1713133
|
|
@ -13,12 +13,13 @@ cache:
|
||||||
tests:
|
tests:
|
||||||
before_script:
|
before_script:
|
||||||
- python -V
|
- 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
|
- pip3 install pipenv wheel tox
|
||||||
- pipenv install --dev
|
- pipenv install --dev
|
||||||
script:
|
script:
|
||||||
- ls
|
- ls
|
||||||
- cp config.ci.py config.py
|
- cp config.ci.py config.py
|
||||||
|
- psql -U postgres -f schema.sql
|
||||||
- pipenv run ./manage.py migrate
|
- pipenv run ./manage.py migrate
|
||||||
- pipenv run ./manage.py setup_tests
|
- pipenv run ./manage.py setup_tests
|
||||||
- tox
|
- tox
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue