43 Commits

Author SHA1 Message Date
Charmander
c8fb4168d4 Add Node 14 to CI 2020-04-21 23:23:52 -07:00
Brian C
2013d77b28
Parser speed improvements (#2151)
* Change from transform stream

* Yeah a thing

* Make tests pass, add new code to travis

* Update 'best' benchmarks and include tsc in pretest script

* Need to add build early so we can create test tables

* logging
2020-04-02 16:48:22 -05:00
Brian C
727f1a0ee3
Do not return broken clients to the pool (#2083)
* 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>
2020-01-28 10:53:29 -06:00
Charmander
ae3f13fad6 Fix tests skipped because of missing suffixes (#2071)
* Fix tests skipped because of missing suffixes

Mocha will happen eventually!

* Skip password tests when they can’t work

Will be made more visible when tests are ported to Mocha.

* Add testing with a user with a password to CI

Should reveal a bug in the password enumerability work, I think.

* Explain new CI matrix entry for password authentication

[ci skip]
2020-01-13 13:00:01 -06:00
Brian M. Carlson
b14cf678cc Remove postgres 9.1 from test matrix - json is not supported 2019-12-18 14:08:23 -06:00
Brian C
1b5f3e33c4
Monorepo (#2014)
* First crack at monorepo

* Update test command

* Update path to script

* Remove node 6 from CI
2019-12-17 08:32:08 -08:00
Charmander
8f56b8c2fd Add PostgreSQL 10 to CI (#1947)
* Exit with error code when create-test-tables fails

* Add PostgreSQL 10 to CI

and change to Ubuntu 18.04 so building OpenSSL isn’t necessary, and move old PostgreSQL version tests to the latest Node LTS.

* Add Node 13 to CI

* Preserve create-test-tables’s compatibility with PostgreSQL <9.4
2019-11-20 17:38:40 -06:00
darkgl0w
d8a0e1e950 Update CI to allow tests to pass on Node.js >= 10.16.0 (#1912)
* Add CI build environment scripts

* Update Travis configuration

* Don't publish CI scripts to npm

* Add Node.js 12 to CI matrix
2019-07-16 14:14:41 -05:00
Brian C
bf84db7c22
Bump packet-reader version (#1840)
* Bump packet-reader version

This should fix the deprecation warning from using `new Buffer`.

* Remove node 11 tests - its a non-stable (odd) version
2019-02-20 14:36:27 -06:00
Igor Savin
ff6fe1e01e Execute tests on Node 11 in CI (#1752) 2018-10-23 13:02:49 -07:00
Sehrope Sarkuni
b0c60cf288 Add node v10 to travis matrix 2018-05-04 12:18:31 -05:00
Elexy
8fb641ee91 upgrade testing node versions 2018-04-04 14:40:25 -07:00
Brian M. Carlson
729d4e9c47 Tweak travis.yml 2017-06-18 16:48:14 -05:00
Brian M. Carlson
49c5976947 Tweak travis node versions 2017-06-18 16:48:14 -05:00
Sehrope Sarkuni
61921aae1a Add node 8.x to Travis-CI matrix 2017-06-09 09:00:04 -05:00
Sehrope Sarkuni
f69108869e Remove default and normalize Travis-CI matrix
Removes the default node 6 / PG 9.6 combination and adds it to the
Travis-CI matrix of combinations. That way all combinations are
defined in a single place.
2017-06-09 09:00:04 -05:00
Charmander
934ca3af16 Remove fallbacks for unsupported Node versions (#1304)
* Remove unsupported Node versions 0.10 and 0.12 from CI

* Replace deprecated Buffer constructor with .from/.alloc

* Remove Promise polyfill

* Make use of Object.assign

* Remove checks for versions of Node earlier than 4

* Remove Buffer#indexOf fallback for Node 0.10
2017-06-07 22:45:32 -05:00
Charmander
27bee1d0bc Fix CI (#1179)
* Use container-based CI

* Remove unnecessary CI configuration

* Use Node 6/PostgreSQL 9.6 as default test

… rather than testing 0.10 twice with unspecified PostgreSQL.

* Use `precise` for PostgreSQL 9.1

According to https://docs.travis-ci.com/user/database-setup/, 9.1 isn’t supported on trusty.

* Fix Node 0.10 and 0.12 CI builds

These binaries appear to have been built using g++ with flags that clang doesn’t support. Or something.
2016-12-10 17:16:51 -06:00
Vitaly Tomilov
ec941c45c1 Upgrading tests to PostgreSQL 9.5 (#1114)
Setting PostgreSQL 9.5 as the main version to test against.

NOTE: The following settings are required for 9.5 to work:
```
sudo: required
dist: trusty
```
2016-08-22 22:35:41 -05:00
Brian C
5d3b506c70 Change test matrix in .travis.yml (#1002)
* Change test matrix in .travis.yml

Add tests for node @ v6. Remove node & postgres test permutations for older versions of node.

* Remove sub-versions

* Remove minor version from node 4
2016-04-27 14:30:00 -05:00
brianc
1020a7175f Add clang flags to travis environment
Trying to fix the building on travis...
2015-10-07 11:11:53 -05:00
jongleberry
7a614ac311 travis: fix node@4 compile errors 2015-09-20 21:00:57 -07:00
brianc
514008f4f3 Update version of node used in travis 2015-09-20 08:39:07 -05:00
Sehrope Sarkuni
8ce6811f40 Bump iojs version in Travis matrix to iojs-v2 2015-08-02 11:03:53 -04:00
Sehrope Sarkuni
e98ef2f784 Disable sudo in .travis.yml
This enables container based builds on Travis which should speed
up automated testing.
2015-08-02 11:03:53 -04:00
Sehrope Sarkuni
7a09283fe7 Remove node v0.11 from Travis matrix 2015-08-02 11:03:53 -04:00
Sehrope Sarkuni
180f5f7d84 Add node/PostgreSQL matrix to .travis.yml
Add a matrix configuration to .travis.yml to test permutations of node and PostgreSQL.
Node versions tested against are v0.10, v0.11, v0.12 and io.js v1.
PostgreSQL versions tested against are 9.1, 9.2, 9.3, and 9.4.
2015-08-02 11:03:53 -04:00
Vitaly Tomilov
8d142513cc Updated Test Environments
* Replaced NodeJS 0.11 with 0.12, because people only care about 0.10 and 0.12 today;
* Added test support for the most recent stable version of IO.js
2015-04-15 23:01:33 +01:00
Brian M. Carlson
aa901a2c21 Fix travis tests 2014-11-18 16:03:27 -05:00
Brian M. Carlson
40c50e743e Update .travis.yml 2014-11-18 15:01:07 -05:00
Brian M. Carlson
fb2db0874d Merge with origin/master 2014-11-18 14:59:38 -05:00
Brian M. Carlson
06b0392a57 Update travis config 2014-11-18 11:51:40 -05:00
Brian M. Carlson
c21dcfbf12 Fix travis environment 2014-11-11 09:42:46 -05:00
Brian C
7d05eb7368 Update .travis.yml
Don't install a particular version of npm
2014-09-02 16:58:52 -04:00
Brian C
8592be7176 Merge pull request #604 from markyen/socket-port
Include port as a connection parameter for socket connections
2014-07-06 19:24:09 -04:00
Mark Yen
bf26569445 Fixes travis build for 0.8 2014-07-06 11:54:23 -07:00
Brian C
450c52c044 Update .travis.yml
Remove v0.8 support because it no longer ships with a working npm
2014-06-13 13:55:41 -04:00
Pegase745
0ccdee4b93 Travis Nodejs 0.10 build error correction
Putting it between double quotes permits Travis to not see it as Node 0.1 but 0.10
2013-04-17 14:15:02 +03:00
brianc
463884adc2 change versions of node tested with travis-ci 2013-03-14 08:37:58 -05:00
brianc
6879453d83 add v0.9.x to travis 2013-03-07 08:27:53 -06:00
brianc
23bfcc52f4 dont create postgres database 2012-07-11 23:06:45 -05:00
brianc
822e48d41e no dash in database name 2012-07-11 23:05:39 -05:00
brianc
57a2176d48 initial crack at travis-ci 2012-07-11 23:01:54 -05:00