Skip to content

Commit 225ed49

Browse files
committed
Add testing with a user with a password to CI
Should reveal a bug in the password enumerability work, I think.
1 parent 10f2418 commit 225ed49

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.travis.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: node_js
22
dist: bionic
33

4-
before_script:
5-
- node packages/pg/script/create-test-tables.js pg://[email protected]:5432/postgres
4+
before_script: |
5+
node packages/pg/script/create-test-tables.js postgresql:///
66
77
env:
88
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres
@@ -17,6 +17,17 @@ addons:
1717

1818
matrix:
1919
include:
20+
- node_js: lts/erbium
21+
env:
22+
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres PGPASSWORD=test-password
23+
before_script: |
24+
sudo -u postgres sed -i \
25+
-e '/^local/ s/trust$/peer/' \
26+
-e '/^host/ s/trust$/md5/' \
27+
/etc/postgresql/10/main/pg_hba.conf
28+
sudo -u postgres psql -c "ALTER ROLE postgres PASSWORD 'test-password'; SELECT pg_reload_conf()"
29+
node packages/pg/script/create-test-tables.js postgresql:///
30+
2031
- node_js: lts/carbon
2132
addons:
2233
postgresql: "9.5"

0 commit comments

Comments
 (0)