Commit Graph

208 Commits

Author SHA1 Message Date
Yavor Georgiev 5db836dc8b use newest ROS 2017-08-17 13:02:21 +02:00
Yavor Georgiev c78f82ac0c Update download script for the new core build system 2017-08-17 13:01:41 +02:00
Yavor Georgiev b17dcddd17 use sync 2.0-rc11 2017-08-17 12:56:01 +02:00
Kristian Dupont c24cc16ebf Fix a few publish issues (#1215)
* Stop trying to kill the server twice after testing

* Fix test targets to run before publishing

* ...

* Remove electron runner from publish for now

* Update changelog
2017-08-16 11:11:28 +02:00
Kristian Dupont f55fa10b6b Add environment-check script (#1199)
* Add environment-check script

* Check version without using semver module
2017-08-14 10:30:03 +02:00
Kræn Hansen e4e1431c55 Running js tests in Electron renderer process (#1196)
* First take on running the tests inside an Electron render process

* Making progress

* Making it possible to override the location of the admin token

* Ignoreing the realm-object-server files

* Fixing a console.log to return a string instead of a boolean

But it should probably be removed entirely

* Making the downloaded ROS log less

* Adjusting comments in the test.sh

* Checking number of windows to determine an Electron crash

* Added a test that triggers garbage collection of ArrayBuffers

* Enabled the ability to run the tests in Electrons main process

* Run tests first in main process and the render

* Added a README.md that documents how Electron tests can be run

* Added a comment on why the garbage-collection test was added.

* Waiting with reading the admin token, until it is actually used

* Disabling the GarbageCollectionTests for now
2017-08-11 10:30:57 +02:00
Yavor Georgiev ab29ac4490 Fix linter issues (#1132) 2017-07-10 16:53:00 +02:00
Yavor Georgiev 2f83d8792b
fix caching when downloading the ROS-for-testing bundle 2017-06-26 11:42:55 +02:00
Yavor Georgiev 208dc858b5 update the windows pre-gyp script (#1072) 2017-06-16 11:01:22 +02:00
blagoev 468e69d76e Improve VS Code debug
Allow debugging of session-tests and improve VS Code debug tasks.
New VS Code task to download and start server for debugging
New VS Code tasks to build only changed files and full rebuild
2017-05-17 16:05:15 +03:00
blagoev 8069c7e25a fix npm scripts 2017-04-20 14:03:54 +03:00
blagoev 8b1bec1123 enable android build on windows 2017-04-20 14:03:54 +03:00
blagoev a33577eccb remove obsolete test nosync targets 2017-03-30 11:24:46 +03:00
blagoev b7095f4a70 revert some test logic for tests in Debug 2017-03-27 19:18:56 +03:00
blagoev d23d60f272 refactor test.sh to use npm commands
fixed license-check npm command
added test-runners npm command
2017-03-27 19:18:56 +03:00
blagoev edf4cb5760 rewrite most test commands to be platform agnostic 2017-03-27 19:18:56 +03:00
blagoev f54e963b1b make tests Debug arg case insensitive 2017-03-16 12:15:20 +01:00
Yavor Georgiev db8ebd9333 Node.js Win32 support (#864)
* Remove the windows install check

* Node.js Win32 support

* Bring back the `REALM_HAVE_CONFIG` definition

* Download core for Windows when building

* Implement cross-platform node platform.cpp with libuv

* wip

* Make jasmine run quicker

https://github.com/jasmine/jasmine/issues/1204

* Wait for worker process to close in AsyncTests

* Cross-platform paths in tests

* Normalize path separator for forward slash on Windows

* MSVC exception voodoo

* cross-platform uv_cwd

* fix linux build

* make the prepublish script cross-platform

* Disable encryption tests on windows

* ignore vendor/realm-node

* jenkinsfile work

* Only run the prepublish script for publish and pack

* Jenkinsfile work

* Include gyp files in package

* rewrite default_realm_file_directory()

* fix React Native Android build

* delete all realm artifacts in remove_realm_files_from_directory

* bring back build environment variables

* node-pre-gyp windows

* Update CHANGELOG.md
2017-03-07 23:24:30 +01:00
Kristian Dupont 9eaba13f12 Validate that dependencies have valid licenses (#841) 2017-02-06 11:33:14 +01:00
Yavor Georgiev 0c6000a733 Enable running android sync tests on macOS (#834)
* start ROS and forward ports when running android tests on macOS

* rework AuthError so JSC likes it
2017-02-02 02:41:27 +01:00
Yavor Georgiev 9d1d970b1f Sync Session API (#825)
* Add Session class and expose it to JS

* Add error property on the sync config object for the event handler

* tests

* refactor access token refresh

* chrome debugging
2017-02-01 14:18:59 +01:00
Kristian Dupont 0c9c5ac407 Add missing chrome debugging apis for Sync.User (#801)
* Add user tests

* Add Sync member to Realm

* Add a simple test for addListener

* Introduce browser User class

* Introduce Sync.User proxy

* Fix User.all

* Add User.logout

* Remove some console.log statements

* Update rpc.cpp from tests-folder

* Use user.current from user-methods, not cpp

* remove user.current from two missing places

* Start server in realmjs and react tests

* Add user tests

* Add Sync member to Realm

* Add a simple test for addListener

* Introduce browser User class

* Introduce Sync.User proxy

* Fix User.all

* Add User.logout

* Remove some console.log statements

* Update rpc.cpp from tests-folder

* Use user.current from user-methods, not cpp

* remove user.current from two missing places

* Start server in realmjs and react tests

* Replace needle with node-fetch

* Make AuthError work in the browser

* Allow for persistent callbacks

* Expose _authenticateRealm to native

* Use clear_test_state in roc

* Streamline test inclusion

* Fix login tests

* Promisify testLogin()

* Disable AsyncTests for now

* Mode jasmine timeout to spec/unit_tests.js

* Avoid use of global for fetch module

* Only include user-tests is sync is enabled

* Skip ROS for android tests

* Add some comments about persistent callbacks

* Fix results-test

* Run async-tests in node

* Add a comment about (user object)

* Cache all users in User.current and return promises in fetch

* node_require async-tests so RN doesn't try and package them

* Add missing parenthesis
2017-01-31 14:07:29 +01:00
Yavor Georgiev 12bde1ed35 Improve CI builds relying on Chrome (#796)
* Use ES6 Proxies to implement collections in the Chrome debugger

* rework realm-test-names event

* move React stuff on the CPH mac mini

* use node with npm3

* remove debugging aid code
2017-01-11 18:22:41 +01:00
Kristian Dupont 2187667650 Always install node binaries except on Windows (#790) 2017-01-11 11:12:43 +01:00
Mark Rowe c4b22a160a Update to sync v1.0.0-BETA-6.3 (#776)
* Update to sync v1.0.0-BETA-6.3.

This requires updating to current object store master to accommodate the
changes to sync error reporting.

* Add some include folder search paths

* Add thread_safe_reference to the RealmJS target
2017-01-04 15:07:25 +01:00
Kristian Dupont afa5a57024 Fix typo in test.sh 2017-01-04 11:55:54 +01:00
Emanuele Zattin 87d4952302 Fix a typo 2017-01-03 12:55:36 +01:00
Emanuele Zattin d4a51e9996 Make the symlink relative 2017-01-03 12:40:36 +01:00
Emanuele Zattin 142b6fadaa Another fix 2017-01-03 12:21:23 +01:00
Emanuele Zattin 08b2a3da43 Got ln arguments order wrong... again 2017-01-03 11:43:21 +01:00
Emanuele Zattin 952b3f719b Fix Jenkins builds by rewriting the symlink 2017-01-03 11:32:30 +01:00
Emanuele Zattin 3afb9ff017 Fix some Ruby 2017-01-03 10:16:19 +01:00
Emanuele Zattin c7a7d1228b Make shellcheck happy about test.sh 2017-01-02 13:35:45 +01:00
Karl Kuehn 40b3b0d6e7 improve resetting the iOS simulator (#710)
Reworks how the simulator is handled to ensure that we are using a single targeted simulator platform (e.g.: iOS 9 on iPhone 5s), and that the Simulator is in good shape to handle that.
2016-12-22 10:02:15 -08:00
Ari Lazier c95129cff9 fix download core script to properly check the sync dependency (#735) 2016-12-21 15:30:24 +01:00
Nabil Hachicha b9706b1e80 Nh/fixes 740 (#743)
* Fix Android testing CI job, we don't use the packager since we build the Release bundle
* Test run on Docker-cph-01 or Docker-cph-02
2016-12-20 19:01:45 +00:00
Kristian Dupont 63cd9013cc Add install script to conditionally launch node-pre-gyp (#689)
* Add user file

* Add install script to conditionally launch node-pre-gyp

* Let install script deal with plain npm install

* Make eslint happy

* Use require.resolve instead of brittle relative path

* Update install script to forward pre-gyp error

* Fix error in install.js

* Revert "Add user file"

This reverts commit 2948f4cfc2dfd2d5d75594307b1e89806b817eb7.
2016-12-20 17:10:37 +01:00
Radu Tutueanu 50d8a55d3f Use the KILL signal when killing the server 2016-12-07 13:28:05 +01:00
Radu Tutueanu 2c99e73e6b Update sync and ros package names 2016-12-06 12:43:25 +01:00
Adam Lebsack 88e840f315 Merge remote-tracking branch 'origin/master' into ajl/jenkinsfile 2016-11-25 11:33:48 +01:00
Adam Lebsack 1856f04cce Fix for android wrapper 2016-11-24 17:39:50 +01:00
Adam Lebsack 5ac6d97833 Added support for React tests on android in docker (phew) 2016-11-24 16:58:16 +01:00
Radu Tutueanu 2543413017 Build and publish node pre-gyp binaries (#657)
* Build node pre-gyp for linux

* Add Jenkisfile

* Fix core package names

* Fix Jenkinsfile errors

* To revert: only build using 4.4.7

* Do not download on linux

* Fix wrong argument

* Fix archiving linux artifacts

* Try to fix

* Revert "Try to fix"

This reverts commit 8bcd1d0ffb539b9f2881ce8e0396681b55caf69e.

* Fix moving the gyp binaries

* Update version

* Revert "To revert: only build using 4.4.7"

This reverts commit b829c0e0d27b1baed50c3af436731c5014de290f.

* Bump version in dependencies

* Publish binaries

* Use correct version

* Remove unneded quote

* Fix publish
2016-11-23 15:09:47 +01:00
Ari Lazier cdcefa5cfa use newer node version 2016-11-22 07:07:52 -08:00
Adam Lebsack 014191a663 Added jenkinsfile 2016-11-22 10:32:35 +01:00
Karl Kuehn 8d75898fe5 better report errors in test/build
fix for error visibility from #639
2016-11-21 16:48:03 -08:00
Karl Kuehn d5aaab1308 fix case where xcpretty is not installed 2016-11-18 14:00:30 -08:00
Ari Lazier ab7061aa29 undo test.sh change 2016-11-15 11:22:15 -08:00
Ari Lazier 038a025b81 [0.15.0] Bump version 2016-11-15 11:10:07 -08:00
Ari Lazier fabaf5e819 Merge pull request #653 from realm/nh/update_android
Nh/update android
2016-11-15 10:06:20 -08:00