Commit Graph

67 Commits

Author SHA1 Message Date
Antonio Davi Macedo Coelho de Castro
8b97c1380b Batch transaction (#5849)
* Batch transaction boilerplate

* Refactoring transaction boilerplate

* Independent sessions test

* Transactions - partial

* Missing only one test

* All tests passing for mongo db

* Tests on Travis

* Transactions on postgres

* Fix travis to restart mongodb

* Remove mongodb service and keep only mongodb runner

* MongoDB service back

* Initialize replicaset

* Remove mongodb runner again

* Again only with mongodb-runner and removing cache

* Trying with pretest and posttest

* WiredTiger

* Pretest and posttest again

* Removing inexistent scripts

* wiredTiger

* One more attempt

* Trying another way to run mongodb-runner

* Fixing tests

* Include batch transaction on direct access

* Add tests to direct access
2019-07-31 02:41:07 -07:00
Arthur Cinader
38756421d1 try to generate secure key correctly this time. (#5653) 2019-06-08 13:53:12 -07:00
Arthur Cinader
c016cf7960 add a gh token to give travis the rights to be me. (#5650) 2019-06-08 08:49:17 -07:00
Arthur Cinader
3341688e18 put deploy secure stuff in right section
add email
2019-06-08 07:57:16 -07:00
Arthur Cinader
476c945d7e Futzing with travis (#5648)
* Attempt to change npm credentials
from folovilmart to acinader

* Attempt to change npm credentials
from folovilmart to acinader
2019-06-08 07:42:37 -07:00
Diamond Lewis
4c996baf72 Update Travis CI Cache (#5575)
`prepare` causes `npm ci` to be used. `.npm` is the recommended cache directory. Should speed up build times.

https://docs.npmjs.com/cli/ci
2019-05-09 22:04:40 -05:00
Florent Vilmart
2d7b9923ef Release 3.1.3 (#5267)
*  Release 3.1.3

* Update CHANGELOG.md
2018-12-30 09:45:19 -05:00
Florent Vilmart
c762ee4b43 run tests against mongodb 4.0 (#5250)
* run tests against mongodb 4.0

* Adds compatibility shields
2018-12-18 11:41:18 -05:00
Florent Vilmart
315d3bfee8 Use current LTS 10.14.2 for dev and ci (#5249) 2018-12-18 11:21:33 -05:00
Florent Vilmart
d83a0b6808 Use Prettier JS (#5017)
* Adds prettier

* Run lint before tests
2018-09-01 13:58:06 -04:00
Florent Vilmart
0571675fcd version 3.0.0 API Docs (#4943)
* Adds documentation and docs generation upon merge

* nits
2018-08-15 10:47:21 -04:00
Florent Vilmart
e15244c7b2 Removes npm-git.sh scripts (#4853) 2018-06-25 20:59:54 -04:00
Florent Vilmart
9bff44b446 Ensure users with undefined ACL are treated as readable (#4795)
* Adds test to reproduce issue #4790

* Attempt to allow failure on node STABLE

* Use new format for apt packages
2018-05-30 12:55:15 -04:00
Florent Vilmart
642e2ffe12 Adds greenkeeper package-lock management (#4778) 2018-05-21 17:38:54 -04:00
Florent Vilmart
a619119684 Bumps minimum node engine to 8+ (#4474)
* Use node 8 as development environment

* fixup! Use node 8 as development environment

* bump node to 8.10

* Targets node 8 for everything

* Run npm install so lock file is up to date

* Use push adapter v3

* Deflake a test on ParseUser

* Adds slight delay after logout

* Ensure we wait even if call fails

* Use node carbon
2018-05-18 15:49:00 -04:00
Florent Vilmart
a9ebc2b9af Release 2.8.1 (#4771)
* unfuck release 2.8.0

*  Release 2.8.1

* Ensure we can install also on latest
2018-05-18 13:06:12 -04:00
Addison Elliott
9eed81e636 Remove nsp check from Travis YML (#4403)
nsp is done through a GitHub PR hook and managed separately from Travis CI
2017-11-29 16:01:27 -05:00
Florent Vilmart
e2d33678a9 Makes all scripts cross platforms (#4383) 2017-11-27 23:22:07 -05:00
Florent Vilmart
6a1510729a Bump nodejs version to 6+ (#4272)
* let travis build against 3.x

* Cleanup dependencies and bump min version to current LTS

* Makes npm-git push all branches to -preview

* restores releases

* Bumps mime to 2.0.3 (requires node 6+)

* Bumps express to latest version

* Fixes linting issue after upgrade

* Use travis-branch for partial releases
2017-11-25 15:39:31 -05:00
Florent Vilmart
ea57c523da let travis build against 3.x 2017-11-25 15:39:31 -05:00
Florent Vilmart
7d2332e651 Run nsp check on release (#4285)
* Run nsp check on release

* At the right place
2017-10-24 19:06:54 -04:00
Florent Vilmart
770aba193c fix(package): update pg-promise to version 6.9.0 (#4205)
* fix(package): update pg-promise to version 6.9.0

Closes #4160

* Update .travis.yml
2017-09-23 11:42:46 -04:00
Florent Vilmart
c2c059f625 Smaller build matrix (#3986) 2017-08-11 13:17:58 -04:00
Florent Vilmart
5931aa8851 Release 2.5.2 (#3985)
* Adds ability to configure cache from cli

* dont use array.includes for node 4.6

* Changelog and version bump

* Removes runtime check for version

* Build releases on 4.6
2017-07-02 20:50:13 -04:00
Florent Vilmart
ab5b759e26 [CI] test with 6.10 and 7.10, mongoDB 3.2 and 3.4 (#3787)
* Node modernization on CI

* Makes sure tests dont yeild unhandled promise rejections

* Adds small delay to startDB

* Adds mongodb service

* testing default

* stupid

* testing with silent nugget

* proper versions

* Single release step
2017-05-14 10:50:53 -04:00
Florent Vilmart
f40019a326 build docker images on docker hub 2017-05-12 23:13:50 -04:00
Florent Vilmart
391ac97494 [ops] use build stages in travis (#3810) 2017-05-12 22:55:15 -04:00
greenkeeper[bot]
0f1aea1db1 Update dependencies to enable Greenkeeper 🌴 (#3712)
* chore(package): update dependencies

https://greenkeeper.io/

* chore(travis): whitelist greenkeeper branches 

https://greenkeeper.io/

* docs(readme): add Greenkeeper badge 

https://greenkeeper.io/

* Update README.md
2017-04-23 10:05:57 -07:00
Florent Vilmart
dcd8e5626a Updates npm deployment keys (#3713)
* Fix on:repo clause for travis

* Update deploy keys
2017-04-16 11:46:32 -04:00
Florent Vilmart
f3765e0b8e use nyc for coverage (#3652)
* use nyc for coverage

* removes unnecessary logss

* Disable RedisCacheAdapter tests when not in specific environment
2017-03-20 09:58:36 -07:00
Florent Vilmart
b4e27e1160 Adds testing safeguard on lib (#3537) 2017-02-20 22:45:45 +02:00
Florent Vilmart
f7f17cdb23 Update package.json (#3480)
* Update package.json

* Update .travis.yml
2017-02-06 10:41:33 -07:00
Florent Vilmart
cb15c0b616 Disallow failures for PG (#3372) 2017-01-16 13:24:45 -08:00
Florent Vilmart
0159360a5d Fixes CI dist (#3206) 2016-12-07 19:57:13 -08:00
Kulshekhar Kabra
df74a1f8ae Use trusty in travis (#3170)
* Use trusty in travis

* Install postgresql-9.5-postgis-2.3 in travis
2016-12-03 18:43:30 -05:00
Florent Vilmart
b9afccd338 Makes sudo: false (#3166)
* Makes sudo: false

* ignore error when configuring postgis

* Use precise instead of trusty
2016-12-02 17:53:32 -05:00
Florent Vilmart
8c2c76dd26 Adds liniting into the workflow (#3082)
* initial linting of src

* fix indent to 2 spaces

* Removes unnecessary rules

* ignore spec folder for now

* Spec linting

* Fix spec indent

* nits

* nits

* no no-empty rule
2016-11-24 15:47:41 -05:00
Florent Vilmart
fbbc23772b deploy to dockerHub on tags (#3011) 2016-11-11 10:27:01 -05:00
Kulshekhar Kabra
583887c43c Improve update of jsonb fields. Add PG 9.5 to travis. (#2984)
* Improve update of jsonb fields. Add PG 9.5 to travis.

* Replace manual escaping with pg-promise's built in
2016-11-01 20:55:53 -04:00
Florent Vilmart
9260e8b05f Bumps minimum engine to 4.5 (#2733) 2016-09-24 13:53:31 -04:00
Florent Vilmart
ddb0fb8a27 Adds redis cache for distributed environments (#2691)
* Makes schemaCache clearning promise-based

* Adds redis cache adapter for distributed systems

* Adds redis service to travis

* allow pg to fail
2016-09-17 13:52:02 -07:00
Florent Vilmart
f9dca6072a Travis: Makes sure the global success is reported on build leader (#2723)
* Adds exporting vars after success

* Echo var

* remove echo
2016-09-17 16:46:56 -04:00
Florent Vilmart
ba0e529f81 Build merges on master to lastest branch (#2722)
* Build merges on master to lastest branch

* Only on master
2016-09-17 15:57:51 -04:00
Florent Vilmart
7f6fb11d78 Revocable session upgrade only on mongo (#2685)
* Revert "Tries a new travis configuration"

* Revocable session upgrade only on mongo
2016-09-09 17:02:15 -04:00
Florent Vilmart
ccf2b14b98 Updates Travis configuration (#2645) 2016-09-09 14:48:34 -04:00
Florent Vilmart
26ce63513c Removes mongodb v2.6.11 from test suite (#2619) 2016-08-30 11:30:08 -04:00
Florent Vilmart
9ecb9a3595 Postgres: Operations, Hooks, OAuth login, Files support (#2528)
* Adds files related tests through fs-adapter with PG

* Schema deletions implementations

* Adds Hooks spec

* Fix test

* Adds support for containsAll (numbers and strings)

* Better support for deleteFields and deleteClass

* Recursive JSON update for authData

* Adds node_modules to travis cache

* Disable temporarily to make tests pass

* Adds _perishable_token support for _User class

* ignore when a table creation fails at init (table exists)

* Adds support for AddUnique and Remove

* PG 9.4 compatible functions

* Re-enable tests

* nit

* Better handling of schema creation race
2016-08-18 18:05:26 -04:00
Florent Vilmart
c0249283ac Advancements with postgres (#2510)
* Start DB runner from tests

* Connect GridstoreAdapter only when needed

* removes unused package

* better test errors reporting

* Adds support for __op.Delete

* Better test error reporting

* Makes sure all tests can run without crashing

* Use xdescribe to skip test suite

* Removes unused dependencies

* Let volatiles classes be created with PG on start

* Do not fail if class dont exist

* adds index.spec.js to the pg suite

* Use a new config each test to prevent side effects

* Enable EmailVerificationToken specs with pg

* Makes sure failure output is not cut

* Reduces number of ignored tests in ParseObject.spec

* Inspect reconfiguration errors

* Mark GlobalConfig is incompatible with PG

- Problem is with nested updates (param.prop = value)

* PG: Nested JSON queries and updates

- Adds support for nested json and . operator queries
- Adds debug support for PG adapter
- Adds loglevel support in helper

* Enable working specs in ParseUser

* Sets default logLevel in tests to undefined

* Adds File type support, retores purchaseValidation specs

* Adds support for updating jsonb objects

- Restores PushController tests

* Proper implementation of deleteByQuery and ORs

- Adds ParseInstallation spec to the test suite

* xit only failing tests

* Nit on ParseAPI spec

* add sorting operator

* properly bound order keys

* reverts describe_only_db behavior

* Enables passing tests

* Adds basic support for relations, upsertOneObject aliased to createObject

* progress on queries options

* Fix ACL update related problems

* Creates relation tables on class creation

* Adds Relation tests

* remove flaky tests

* use promises instead of CB

* disable flaky test

* nits

* Fixes on schema spec

- Next thing is to implemenet geopoint and files correctly

* fix failues

* Basic GeoPoint support

* Adds support for $nearSphere/$maxDistance geopoint queries

* enable passing tests

* drop tables afterEach for PG, clean up relation tables too

* Better initialization/dropTables
2016-08-15 16:48:39 -04:00
Florent Vilmart
02edf27f05 Restores code coverage (#2340) 2016-07-19 23:33:01 -04:00
Florent Vilmart
78ea02968a Cache all the mongodb/version folder (#2336)
* Cache all the version folder

* list cache
2016-07-19 21:27:04 -04:00