We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3617590 commit 6e3bafdCopy full SHA for 6e3bafd
.travis.yml
@@ -4,16 +4,19 @@ sudo: true
4
services:
5
- postgresql
6
python:
7
- - 2.7
8
- - 3.5
9
- 3.6
10
- 3.7
11
- 3.8
12
install:
13
- - pip install tox
14
- - pip install -q tox-travis
+ - pip install tox tox-travis
15
script:
16
- - tox
+ - tox
+env:
+ global:
+ PGDATABASE: django_generic_filters
17
+ PGHOST: localhost
18
+ PGUSER: postgres
19
+
20
21
stages:
22
- lint
demo/demoproject/settings.py
@@ -20,7 +20,7 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
23
- "NAME": environ["PGDATABASE"]
+ "NAME": environ.get("PGDATABASE", "django_generic_filters")
24
# Configure database using standard PG* environment variables
25
# https://www.postgresql.org/docs/current/libpq-envars.html
26
}
0 commit comments