mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
test: Enable scram tests on travis
This commit is contained in:
parent
4a80468a8a
commit
c25e88916a
@ -27,7 +27,7 @@ matrix:
|
||||
# Run tests/paths that require password authentication
|
||||
- node_js: lts/erbium
|
||||
env:
|
||||
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres PGPASSWORD=test-password
|
||||
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres PGPASSWORD=test-password SCRAM_TEST_PGUSER=scram_test SCRAM_TEST_PGPASSWORD=test4scram
|
||||
before_script: |
|
||||
sudo -u postgres sed -i \
|
||||
-e '/^local/ s/trust$/peer/' \
|
||||
@ -36,6 +36,9 @@ matrix:
|
||||
sudo -u postgres psql -c "ALTER ROLE postgres PASSWORD 'test-password'; SELECT pg_reload_conf()"
|
||||
yarn build
|
||||
node packages/pg/script/create-test-tables.js postgresql:///
|
||||
sudo -u postgres -- psql \
|
||||
-c "SET password_encryption = 'scram-sha-256'" \
|
||||
-c "CREATE ROLE scram_test login password 'test4scram'"
|
||||
|
||||
- node_js: lts/carbon
|
||||
addons:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user