Skip to content

Commit

Permalink
fix testsettings_psql.py
Browse files Browse the repository at this point in the history
  • Loading branch information
seljin committed Sep 6, 2022
1 parent d9c0ed6 commit bf49ff5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ services:

addons:
postgresql: "11"
apt:
packages:
- postgresql-11
- postgresql-client-11

env:
global:
- PGPORT=5433
- PGUSER=travis

cache: pip

Expand Down
4 changes: 2 additions & 2 deletions testsettings_psql.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
DATABASES['default'] = {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'django-rest-models',
'USER': os.environ.get('DB_USER', 'postgres'),
'USER': os.environ.get('PGUSER', 'postgres'),
'PASSWORD': os.environ.get('DB_PWD', ''),
'HOST': os.environ.get('DB_HOST', '127.0.0.1'),
'PORT': '5432',
'PORT': os.environ.get('PGPORT', '5432'),
}

0 comments on commit bf49ff5

Please sign in to comment.