Now use postgres in tests

This commit is contained in:
Eliot Berriot 2017-12-28 22:59:43 +01:00
commit c7636c9528
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 19 additions and 15 deletions

View file

@ -11,11 +11,14 @@ stages:
- deploy
test_api:
services:
- postgres:9.4
stage: test
image: funkwhale/funkwhale:base
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache"
DATABASE_URL: "sqlite://"
DATABASE_URL: "postgresql://postgres@postgres/postgres"
before_script:
- python3 -m venv --copies virtualenv
- source virtualenv/bin/activate