use postgres service for CI

This commit is contained in:
Jens Langhammer 2019-02-21 16:50:36 +01:00
parent b7ac4f1dd2
commit 8bc8765035
2 changed files with 14 additions and 3 deletions

View file

@ -8,7 +8,15 @@ stages:
- test
- build
- docs
image: python:3.5
image: python:3.6
services:
- postgres:latest
variables:
POSTGRES_DB: passbook
POSTGRES_USER: passbook
POSTGRES_PASSWORD: 'EK-5jnKfjrGRm<77'
SUPERVISR_ENV: ci
include:
- /allauth/.gitlab-ci.yml

View file

@ -1,8 +1,11 @@
# This is the default configuration file
databases:
default:
engine: 'django.db.backends.sqlite3'
name: 'db.sqlite3'
engine: 'django.db.backends.postgresql'
name: passbook
user: passbook
password: 'EK-5jnKfjrGRm<77'
host: postgres
log:
level:
console: DEBUG