Enable database.

This commit is contained in:
Víðir Valberg Guðmundsson 2019-03-28 01:03:11 +01:00
parent 2df37f6976
commit 6c6fd30057

View file

@ -4,9 +4,15 @@ language: python
python: python:
- "3.6" - "3.6"
services:
- postgresql
install: install:
- pip install -r src/requirements/dev.txt - pip install -r src/requirements/dev.txt
before_script:
- psql -c "CREATE ROLE bornhack WITH LOGIN PASSWORD 'bornhack';"
script: script:
- cp src/bornhack/environment_settings.py.dist.dev src/bornhack/environment_settings.py - cp src/bornhack/environment_settings.py.dist.dev src/bornhack/environment_settings.py
- cd src; python manage.py test - cd src; python manage.py test