From ca0fd78ceefd9a12c857550f5c274a4a95c6fb91 Mon Sep 17 00:00:00 2001 From: Radu Tutueanu Date: Tue, 15 Nov 2016 13:49:41 +0100 Subject: [PATCH 1/2] Do not build node with sync by default --- scripts/test.sh | 9 +++++---- src/node/gyp/realm.gyp | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 4f077d7f..2e3877d2 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -123,7 +123,7 @@ case "$TARGET" in ;; "react-tests") if ! [ -z "${JENKINS_HOME}" ]; then - ${SRCROOT}/scripts/reset-simulators.sh + ${SRCROOT}/scripts/reset-simulators.sh fi pushd tests/react-test-app @@ -137,9 +137,9 @@ case "$TARGET" in ;; "react-example") if ! [ -z "${JENKINS_HOME}" ]; then - ${SRCROOT}/scripts/reset-simulators.sh + ${SRCROOT}/scripts/reset-simulators.sh fi - + pushd examples/ReactExample npm install @@ -186,10 +186,11 @@ case "$TARGET" in download_server start_server npm_tests_cmd="npm run test" + npm install --build-from-source --realm_enable_sync else npm_tests_cmd="npm run test-nosync" + npm install --build-from-source fi - npm install --build-from-source # Change to a temp directory. cd "$(mktemp -q -d -t realm.node.XXXXXX)" diff --git a/src/node/gyp/realm.gyp b/src/node/gyp/realm.gyp index 96c200f4..98ae7588 100644 --- a/src/node/gyp/realm.gyp +++ b/src/node/gyp/realm.gyp @@ -5,7 +5,7 @@ "conditions": [ ["OS=='mac'", { "variables": { - "realm_enable_sync%": "1" + "realm_enable_sync%": "0" } }, { "variables": {