Commit Graph

251 Commits

Author SHA1 Message Date
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
Ari Lazier ca3fb62c59 ci build fixes for android 2016-11-15 05:08:26 -08:00
Radu Tutueanu ca0fd78cee Do not build node with sync by default 2016-11-15 13:49:41 +01:00
Nabil Hachicha fdf88c2f78 Adding a build type to switch between Core & Core+Sync 2016-11-14 13:26:33 +00:00
Ari Lazier 15bb3014b9 example fixes 2016-11-11 18:23:44 -08:00
Ari Lazier 41b0426e01 Merge pull request #652 from realm/rt/improve-build
Improve build
2016-11-11 16:31:48 -08:00
Ari Lazier d9398a0bb9 restart simulators 2016-11-11 12:32:20 -08:00
Ari Lazier 7683d1185a rerun tests on failure 2016-11-11 11:31:00 -08:00
Ari Lazier 588fc50e9f try to build then test 2016-11-11 11:24:35 -08:00
Radu Tutueanu 0b9cca78d6 Download core OR sync
No need to download both
2016-11-11 17:42:35 +01:00
Radu Tutueanu 900827d72f Skip the download if PREFIX env variables are defined 2016-11-11 14:46:16 +01:00
Ari Lazier 08ffc3bf15 ccache support 2016-11-10 23:55:26 -08:00
Ari Lazier 81402f890b use yarn and fix for test app package.json 2016-11-10 23:11:31 -08:00
Ari Lazier babd9b6c3d don't unzip sync zip when not needed 2016-11-10 14:29:28 -08:00
Ari Lazier 0cc306ca26 Merge branch 'al-sync-user-tests' of https://github.com/realm/realm-js into al-sync-user-tests 2016-11-10 11:45:04 -08:00
Ari Lazier aeea153a06 don't reset simulators 2016-11-10 11:44:57 -08:00
JP Simard 219947db9e
try to work around failure to run the tests 2016-11-10 11:26:27 -08:00
Ari Lazier 8bd5ee8be7 Merge branch 'al-sync-user-tests' of https://github.com/realm/realm-js into al-sync-user-tests 2016-11-10 10:50:51 -08:00
Adam Lebsack 58e2032998 Merge pull request #649 from realm/rt/fix-node-linux
Fix node tests for linux
2016-11-10 19:50:36 +01:00
Ari Lazier a47d6b12c0 fix for reset script 2016-11-10 10:50:33 -08:00
Ari Lazier 5b3825092d updated simulator script 2016-11-10 10:32:59 -08:00
Adam Lebsack 6b8fa6bf16 Do not run docker interactively 2016-11-10 19:28:39 +01:00
Ari Lazier 97b5101c5e no xcpretty 2016-11-10 10:19:46 -08:00
Adam Lebsack 5080c54b23 Added docker-test.sh wrapper for running linux tests 2016-11-10 19:13:52 +01:00
Ari Lazier 313ca1c3cf improved ci script 2016-11-10 10:06:48 -08:00
Radu Tutueanu 54e30cdd0b Merge remote-tracking branch 'origin/al-sync-user-tests' into rt/fix-node-linux 2016-11-10 16:09:24 +01:00
Ari Lazier e07cbf8549 Merge branch 'al-sync-user-tests' of https://github.com/realm/realm-js into al-sync-user-tests 2016-11-10 06:46:30 -08:00
Ari Lazier e954184d68 use xcpretty 2016-11-10 06:46:21 -08:00
Radu Tutueanu 8ad43b0505 Do not use sync on linux 2016-11-10 14:42:58 +01:00
Radu Tutueanu b38c428e82 Use dependencies.list
Fixes  #644
2016-11-10 13:53:28 +01:00
Ari Lazier dff6c833ff hack to install yarn on ci 2016-11-10 04:28:58 -08:00
Ari Lazier 4fc874f35c some small fixes for download-core script 2016-11-09 15:01:42 -08:00
Søren Vind f8eba17c48 Make it possible to run test suite with and without sync 2016-11-09 12:50:19 -08:00
Radu Tutueanu 9833b8e490 Build macOS with sync by default 2016-11-09 19:07:26 +01:00
Radu Tutueanu b8c5bafd24 Fix untarring core 2016-11-09 17:51:19 +01:00
Radu Tutueanu 397dbbd2e5 Download node 2016-11-09 17:44:37 +01:00
Radu Tutueanu c9579dafd1 Enable build with sync when running tests 2016-11-09 17:28:47 +01:00
Radu Tutueanu c995253202 Fix building with sync 2016-11-09 17:25:25 +01:00
Søren Vind d5cd3d7266 Download and start ROS before running tests + Run all tests + Run using node4.4.7 2016-11-08 16:47:20 -08:00
Ari Lazier fde1c5d00d start implementing sync tests 2016-11-08 08:59:30 -08:00
Ari Lazier 5a49dbc325 make sync work with RealmJS tests 2016-10-27 13:49:41 -07:00
Ari Lazier 60d9da1b44 remove unneded server argument for adminUser, update care and sync dependencies 2016-10-26 17:20:34 -07:00
Ari Lazier d76ec0934e revert download core changes 2016-10-25 09:37:08 -07:00
Yavor Georgiev a37fe03e20 bring back node ci 2016-10-11 22:30:39 +02:00
Yavor Georgiev 5623653477 prepare for the glorious future 2016-10-08 19:36:03 +02:00
Ari Lazier 857369f5a4 download core and sync and get the test app running on sync 2016-10-04 17:27:09 -07:00
Ari Lazier 9d0df0de3d Sync and fine grained notifications 2016-10-04 15:07:14 -07:00
Ari Lazier 1ea107258f don't run npm install multiple times 2016-08-19 10:07:15 -07:00
Mark Rowe 5b888ed91d Update to core 1.5.0 and the latest version of the object store. 2016-08-15 11:29:58 -07:00
Yavor Georgiev fb7911e3fa add support for the jest runner’s node environment 2016-08-10 15:50:37 +02:00
Yavor Georgiev 1a98077794 Add tests to ensure realm-js is usable inside mocha and ava tests 2016-08-10 15:47:55 +02:00
Ari Lazier 1b1c6b9cbc wipe simulators between runs 2016-08-04 11:12:46 -07:00
Thomas Goyne 6a2e86cf93 Use the correct extension for the non-node core download 2016-07-18 15:09:44 -07:00
Thomas Goyne 88b3be3e30 Update to core 1.4.0 2016-07-18 14:55:38 -07:00
Scott Kyle e0ff68059b Remove rnpm post install script
This will mean we only support rnpm 1.9.0 and above.
2016-06-22 14:25:35 -04:00
Scott Kyle ae549aa32e Default to /tmp for TMPDIR
Even though it's UNIX standard, it appears that TMPDIR is missing on Linux!
2016-06-17 13:17:01 -07:00
Scott Kyle 928ab03ce4 Update to download and use core build for Node
This will need to be updated again with a newer version since 1.1.2 build was created on CI but is not actually on static.realm.io until a new release is made.
2016-06-17 11:19:19 -07:00
Scott Kyle 12517a0d1e Add ability to run Node tests on Linux
It uses the Android ExternalCommitHelper implementation.

The Dockerfile requires that you have a static library build of core for Linux with PIC enabled.
2016-06-17 02:38:33 -07:00