Skip to content

Commit

Permalink
Add user to config for running tests locally
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed Apr 1, 2020
1 parent ab68390 commit 3bf5a01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ node_js:
env:
global:
- PGUSER=postgres
- PGPORT=5433
- NODE_CONFIG='{"db":{"port":5433}}'
matrix:
- TARGET=test
- TARGET=travis-coverage
Expand All @@ -14,8 +16,10 @@ before_install:
- sudo apt-get update
- sudo apt-get --yes remove postgresql\*
- sudo apt-get install -y postgresql-12 postgresql-client-12 socat
- sudo cat /etc/postgresql/{9.6,12}/main/pg_hba.conf
- sudo cp /etc/postgresql/{9.6,12}/main/pg_hba.conf
- sudo service postgresql restart 12
- ls -al /var/run/postgresql
before_script:
- psql --version
- psql -c 'select version();'
Expand Down
3 changes: 2 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"db": {
"host": "/var/run/postgresql",
"database": "qlobber-pg"
"database": "qlobber-pg",
"user": "postgres"
}
}

0 comments on commit 3bf5a01

Please sign in to comment.