Skip to content

Commit c25e889

Browse files
committed
test: Enable scram tests on travis
1 parent 4a80468 commit c25e889

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ matrix:
2727
# Run tests/paths that require password authentication
2828
- node_js: lts/erbium
2929
env:
30-
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres PGPASSWORD=test-password
30+
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres PGPASSWORD=test-password SCRAM_TEST_PGUSER=scram_test SCRAM_TEST_PGPASSWORD=test4scram
3131
before_script: |
3232
sudo -u postgres sed -i \
3333
-e '/^local/ s/trust$/peer/' \
@@ -36,6 +36,9 @@ matrix:
3636
sudo -u postgres psql -c "ALTER ROLE postgres PASSWORD 'test-password'; SELECT pg_reload_conf()"
3737
yarn build
3838
node packages/pg/script/create-test-tables.js postgresql:///
39+
sudo -u postgres -- psql \
40+
-c "SET password_encryption = 'scram-sha-256'" \
41+
-c "CREATE ROLE scram_test login password 'test4scram'"
3942
4043
- node_js: lts/carbon
4144
addons:

0 commit comments

Comments
 (0)