Commit Graph

68 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
6250a2e242 feat: add node 14 2020-07-28 21:36:08 -04:00
Barış Soner Uşaklı
bdc4d9e75b feat: add back redis tests 2020-07-07 12:24:20 -04:00
Barış Soner Uşaklı
8461a1796d feat: remove redis test 2020-07-07 12:08:36 -04:00
Barış Soner Uşaklı
a72e44290b feat: remove node14 for now 2020-05-04 13:19:23 -04:00
Julian Lam
a1b050e28d feat: let's start testing node v14 👿 2020-04-24 17:11:00 -04:00
Baris Usakli
05bee6291d fix: try travis fix again 2020-02-28 11:50:00 -05:00
Baris Usakli
bc9e92a11c fix: try fixing psql on travis 2020-02-28 11:29:28 -05:00
Baris Usakli
6a17e32dec fix: remove select version 2019-12-05 18:24:56 -05:00
Baris Usakli
3ae983001d fix: travis config 2019-12-05 18:20:11 -05:00
Baris Usakli
3731dc4eb1 fix: travis 🐶 2019-12-05 17:47:58 -05:00
Ben Lubar
f65922297d fix abysmal postgresql performance in getSortedSetsMembers (#8030)
* refactor postgres upgrade function to use async

* add function wrapper for getting the elements of a sorted set to avoid postgres planning the query with a nested sequential scan

* fix fatal(?!) lint errors

* add missing await

* bump PostgreSQL version on Travis CI to one that isn't over 3 years out of date
2019-11-13 14:45:48 -05:00
Baris Usakli
1a7036a68b feat: add node12 to travis 2019-04-25 15:39:13 -04:00
Barış Soner Uşaklı
39e3527585 fix: don't use same db as prod values 2019-02-09 13:54:08 -05:00
Barış Soner Uşaklı
1f918ca8f8 Home route (#7039)
* fix: WIP home fix

* remove console.log

* fix: #6949

on redis run all tests in subfolder /forum
fix URI errors
fix sping/ping
2018-11-30 21:35:57 -05:00
Baris Usakli
e7f9cff7b5 remove node6 from tests 🔥 2018-11-13 13:20:24 -05:00
Barış Soner Uşaklı
9c022afae1 Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
6b7f5db623 use createUser 2018-10-16 18:56:31 -04:00
Barış Soner Uşaklı
2d8d234c57 test mongodb again 2018-10-16 18:44:03 -04:00
Barış Soner Uşaklı
fc68263f91 change to TEST_ENV 2018-10-16 13:51:34 -04:00
Barış Soner Uşaklı
45b6e56665 add node_env to tests 2018-10-16 13:20:32 -04:00
Ben Lubar
33228bb7fe PostgreSQL database driver (#5861)
* [test/database/list] Fix test list 4 being used in two different tests

* [database/postgres] PostgreSQL database driver

* [database/postgres] Make transactions work based on continuation scope.

* [database/postgres] Implement nested transactions

* eslint --fix

* Add database changes from earlier this week to the PostgreSQL driver.

* Fix typo

* Fix postgres.incrObjectFieldBy returning undefined instead of null when given NaN

* [database/postgres] Fix sortedSetsCard returning an array of strings.

* Update socket.io postgres adapter

* Fix PostgreSQL erroring when multiple updates are made to the same sorted set entry in a single operation.

Add a test case to catch this error.

* Fix lint errors.

* Only prune sessions on one instance in a cluster to avoid deadlocks.

They're caught and handled by the database server, but they spam the logs.

* Fix arguments.slice.
2018-08-08 15:13:48 -04:00
Barış Soner Uşaklı
a531bcb01e remove node_modules cache 2018-06-15 13:41:50 -04:00
Barış Soner Uşaklı
c38751cec3 update travis.yml
only use mongodb or redis
2018-05-28 11:46:12 -04:00
Barış Soner Uşaklı
a90020aaa4 update nodejs test versions 2018-05-25 12:09:49 -04:00
Ben Lubar
6855a87a97 Run travis builds in containers (#6232)
* [travis] Cache node_modules between test runs

* [travis] Enable container-based builds for less waiting time
2018-01-18 13:04:51 -05:00
Julian Lam
4bb46ad669 Merge branch 'master' into develop 2017-12-15 16:02:02 -05:00
Barış Soner Uşaklı
eb47a81c46 remove package.default.json 2017-11-21 14:43:59 -05:00
Peter Jaszkowiak
41b026b4d6 Test Node 9 2017-11-20 15:16:19 -07:00
Peter Jaszkowiak
dfad76120d Support npm@5 and yarn (#6010)
* Support npm@5 and yarn

Use package.default.json
Partial #6008

- Overwrite package.json with package.default.json values
- `dependencies` field is merged with package.default.json version taking precidence
- `./nodebb upgrade` automatically does those things and runs `git pull`
- use `./nodebb upgrade --dev` to avoid the `git pull`

* added logic to preserve extraneous plugins installed in node_modules/

* Don't automatically git pull

* Simplify package-install, run it on upgrade just in case
2017-11-02 14:12:05 -04:00
Barış Soner Uşaklı
557dfd5b47 testing new socket.io-client extraHeaders (#5985)
* testing new socket.io-client extraHeaders

* change mongodb installation
2017-10-13 13:57:30 -04:00
Peter Jaszkowiak
9f9eace596 End support for Node 4, add Node 8 testing 2017-08-30 12:11:23 -06:00
Baris Usakli
10c8666520 lower sleep to 15secs 2017-08-23 11:48:52 -04:00
Baris Usakli
18e0f1a9dd try to start mongod 2017-08-23 11:32:03 -04:00
Baris Usakli
a9e7f768e2 wait 30 secs 2017-08-23 11:19:29 -04:00
Baris Usakli
bd26cadb80 moved sleep before node setup 2017-08-23 11:10:25 -04:00
Baris Usakli
0b6902a03e testing mongodb wait script 2017-08-23 10:44:15 -04:00
psychobunny
767705085b test against nodejs 7 as well 2017-03-13 14:00:48 -04:00
Julian Lam
a043876d00 what, does Travis not like 4-space indents? 2016-12-16 12:47:38 -05:00
Julian Lam
83cd07f830 request travis to build now too 2016-12-13 09:38:43 -05:00
barisusakli
0bf51c7fff remove node 5 from build matrix 2016-11-13 09:19:10 +03:00
barisusakli
224c311b5e testing again 2016-10-16 22:38:26 +03:00
barisusakli
d1fb4909ba one more try catch for node5/6 2016-10-16 17:51:35 +03:00
barisusakli
9e094184ba remove trailing / on url 2016-10-16 16:59:29 +03:00
Yami
74c989d609 chore: add coveralls 2016-10-14 16:06:05 +00:00
Barış Soner Uşaklı
d859163dea configure env matrix 2016-09-29 00:44:48 +03:00
Barış Soner Uşaklı
ae8a75a096 add semicolon 2016-09-29 00:36:41 +03:00
Barış Soner Uşaklı
c9edf1af42 escape test 2016-09-29 00:21:45 +03:00
Barış Soner Uşaklı
2262575760 escape " 2016-09-29 00:07:47 +03:00
Barış Soner Uşaklı
37206a8b13 #5066 2016-09-28 23:59:42 +03:00
Julian Lam
cb940fec28 so no iojs then 😉 2016-08-30 17:09:35 -04:00