Skip to content

Commit 6e3bafd

Browse files
author
Joachim Jablon
committedJul 27, 2020
Travis
1 parent 3617590 commit 6e3bafd

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed
 

‎.travis.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@ sudo: true
44
services:
55
- postgresql
66
python:
7-
- 2.7
8-
- 3.5
97
- 3.6
108
- 3.7
119
- 3.8
1210
install:
13-
- pip install tox
14-
- pip install -q tox-travis
11+
- pip install tox tox-travis
1512
script:
16-
- tox
13+
- tox
14+
env:
15+
global:
16+
PGDATABASE: django_generic_filters
17+
PGHOST: localhost
18+
PGUSER: postgres
19+
1720

1821
stages:
1922
- lint

‎demo/demoproject/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
DATABASES = {
2121
"default": {
2222
"ENGINE": "django.db.backends.postgresql_psycopg2",
23-
"NAME": environ["PGDATABASE"]
23+
"NAME": environ.get("PGDATABASE", "django_generic_filters")
2424
# Configure database using standard PG* environment variables
2525
# https://www.postgresql.org/docs/current/libpq-envars.html
2626
}

0 commit comments

Comments
 (0)
Failed to load comments.