mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
* Prevent requeuing a broken client If a client is not queryable, the pool should prevent requeuing instead of strictly enforcing errors to be propagated back to it. * Write tests for change * Use node 13.6 in travis Some weird behavior changed w/ async iteration in node 13.7...I'm not sure if this was an unintentional break or not but it definitely diverges in behavior from node 12 and earlier versions in node 13...so for now going to run tests on 13.6 to unblock the tests from running while I track this down. * Update packages/pg-pool/test/releasing-clients.js Co-Authored-By: Charmander <~@charmander.me> * Update .travis.yml Co-authored-by: Johannes Würbach <johannes.wuerbach@googlemail.com> Co-authored-by: Charmander <~@charmander.me>
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
language: node_js
|
|
dist: bionic
|
|
|
|
before_script: |
|
|
node packages/pg/script/create-test-tables.js postgresql:///
|
|
|
|
env:
|
|
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres
|
|
|
|
node_js:
|
|
- lts/dubnium
|
|
- lts/erbium
|
|
# node 13.7 seems to have changed behavior of async iterators exiting early on streams
|
|
# if 13.8 still has this problem when it comes down I'll talk to the node team about the change
|
|
# in the mean time...peg to 13.6
|
|
- 13.6
|
|
|
|
addons:
|
|
postgresql: "10"
|
|
|
|
matrix:
|
|
include:
|
|
# 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
|
|
before_script: |
|
|
sudo -u postgres sed -i \
|
|
-e '/^local/ s/trust$/peer/' \
|
|
-e '/^host/ s/trust$/md5/' \
|
|
/etc/postgresql/10/main/pg_hba.conf
|
|
sudo -u postgres psql -c "ALTER ROLE postgres PASSWORD 'test-password'; SELECT pg_reload_conf()"
|
|
node packages/pg/script/create-test-tables.js postgresql:///
|
|
|
|
- node_js: lts/carbon
|
|
addons:
|
|
postgresql: "9.5"
|
|
dist: precise
|
|
|
|
# different PostgreSQL versions on Node LTS
|
|
- node_js: lts/erbium
|
|
addons:
|
|
postgresql: "9.3"
|
|
- node_js: lts/erbium
|
|
addons:
|
|
postgresql: "9.4"
|
|
- node_js: lts/erbium
|
|
addons:
|
|
postgresql: "9.5"
|
|
- node_js: lts/erbium
|
|
addons:
|
|
postgresql: "9.6"
|
|
|
|
# PostgreSQL 9.2 only works on precise
|
|
- node_js: lts/carbon
|
|
addons:
|
|
postgresql: "9.2"
|
|
dist: precise
|