From 5aa17131332112c5a088474d1dbc5474b4d6b0d3 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Tue, 13 Nov 2018 04:23:00 -0300 Subject: [PATCH] .gitlab-ci.yml: add db initalization --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 503ddcf..13682a1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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