Commit Graph

33 Commits

Author SHA1 Message Date
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
Drew
ab06055369 Postgres exclude failing tests (#2081)
* reload the right data

More passing postgres tests

Handle schema updates, and $in for non array columns

remove authdata from user and implement ensureUniqueness

Make some tests work, detect existing classes

Throw proper error for unique index violation

fix findOneAndUpdate

Support more types

support more type

Support boolean, fix _rperm/_wperm, add TODO

Support string types and also simplify tests

Move operator flattening into Parse Server and out of mongo adapters

Move authdata transform for create into Parse Server

Move authdata transforms completely in to Parse Server

Fix test setup

inline addSchema

Inject default schema to response from DB adapter

* Mark tests that don't work in Postgres

* Exclude one more test

* Exclude some more failing tests

* Exclude more tests
2016-06-17 12:59:16 -04:00
Florent Vilmart
39f11a5134 Update .travis.yml (#2065)
Runs coverage no matter what build result.
2016-06-14 20:10:48 -07:00
Drew
5518edc2a5 Postgres adapter (#2012)
* Remove adaptiveCollection

* Remove an adaptiveCollection use

* Remove an adaptiveCollection

* make adaptiveCollection private

* Remove collection from mongoadapter

* Move schema collection usage into mongo adapter

* stop relying on mongo format for removing join tables

* reduce usage of schemaCollection

* remove uses of _collection

* Move CLP setting into mongo adapter

* remove all uses of schemaCollection

* make schemaCollection private

* remove transform from schemaCollection

* rename some stuff

* Tweak paramaters and stuff

* reorder some params

* reorder find() arguments

* finishsh touching up argument order

* Accept a database adapter as a parameter

* First passing test with postgres!

* Actually use the provided className

* index on unique-indexes: c454180 Revert "Log objects rather than JSON stringified objects (#1922)"

* Start dealing with test shittyness

* Make specific server config for tests async

* Fix email validation

* Fix broken cloud code

* Save callback to variable

* undo

* Fix tests

* Setup travis

* fix travis maybe

* try removing db user

* indentation?

* remove postgres version setting

* sudo maybe?

* use postgres username

* fix check for _PushStatus

* excludes

* remove db=mongo

* allow postgres to fail

* Fix allow failure

* postgres 9.4

* Remove mongo implementations and fix test

* Fix test leaving behind connections
2016-06-12 16:35:13 -07:00
Florent Vilmart
38f02af511 Update .travis.yml (#1967)
Fixes tags not running when having more than a digit
2016-06-01 13:49:53 -04:00
Tyler Brock
9bad87905f Add MongoDB 3.2 to test matrix (#1842)
* Add MongoDB 3.2 to test matrix

 - Updated mongodb-runner to support specifying storage engine
 - Specifying mmapv1 explictly because of new 3.2 default

* Increase jasmine.DEFAULT_TIMEOUT_INTERVAL to 3 seconds

* Use fixed mongodb-runner

* Increase jasmine.DEFAULT_TIMEOUT_INTERVAL to 15 seconds

* Update to mongodb-runner 3.3.2 upon release
2016-05-20 14:18:41 -07:00
Drew
10ee229e60 Update dependencies and support node 6.1 (#1754)
* Update dependencies and support node 6.1

* Remove gcs-adapter, which depends on grpc, which fails to build on node 6

* Remove GCS adapter usage
2016-05-11 08:54:23 -04:00
Florent Vilmart
ab6925a5e2 Update .travis.yml (#1428)
Adds regular expression to match tags (yes, match tag in branches...)
Tags should follow:

1.0.0
or
1.0.0-some
2016-04-08 08:02:54 -04:00
Florent Vilmart
de2a2ee245 Update .travis.yml (#1423)
* Update .travis.yml

This will prevent the additional build we're seeing, as well as hopefully keep the tagged deploys
Only run the deployment when $MONGODB_VERSION = '3.0.8' (one part of the build matrix)
2016-04-07 23:11:06 -04:00
Florent Vilmart
bc384e97e1 Let travis build all branches 2016-04-05 08:53:17 -04:00
Fosco Marotto
19da14f3df Adds travis configuration to deploy NPM on new version tags 2016-04-04 12:44:22 -07:00
Florent Vilmart
1a17d16dc9 Better support for windows builds 2016-03-04 13:44:56 -05:00
Florent Vilmart
0e39b3b0e7 Adds optional COVERAGE
renames COVERAGE to CODE_COVERAGE

Updates env in .travis.yaml
2016-03-03 13:08:59 -05:00
Drew
2f95688bf9 Update .travis.yml 2016-02-10 14:49:52 -08:00
Florent Vilmart
86d6bc268f Adds cache for mongodb directories 2016-02-07 09:32:38 -05:00
Nikita Lutsenko
ba9d1f9eef Add Mongo 2.6.11 to Travis-CI. 2016-02-03 02:53:12 -08:00
Nikita Lutsenko
4bc921480f Add code coverage via CodeCov.io. 2016-02-03 00:21:55 -08:00
Nikita Lutsenko
ca2ac2195d Add Travis-CI configuration. 2016-02-03 00:21:55 -08:00