Skip to content

Commit bf49ff5

Browse files
committed
fix testsettings_psql.py
1 parent d9c0ed6 commit bf49ff5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ services:
66

77
addons:
88
postgresql: "11"
9+
apt:
10+
packages:
11+
- postgresql-11
12+
- postgresql-client-11
13+
14+
env:
15+
global:
16+
- PGPORT=5433
17+
- PGUSER=travis
918

1019
cache: pip
1120

testsettings_psql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
DATABASES['default'] = {
77
'ENGINE': 'django.db.backends.postgresql',
88
'NAME': 'django-rest-models',
9-
'USER': os.environ.get('DB_USER', 'postgres'),
9+
'USER': os.environ.get('PGUSER', 'postgres'),
1010
'PASSWORD': os.environ.get('DB_PWD', ''),
1111
'HOST': os.environ.get('DB_HOST', '127.0.0.1'),
12-
'PORT': '5432',
12+
'PORT': os.environ.get('PGPORT', '5432'),
1313
}

0 commit comments

Comments
 (0)