From 952b3f719b249a25892492ca9a352df0a27833ba Mon Sep 17 00:00:00 2001 From: Emanuele Zattin Date: Tue, 3 Jan 2017 11:32:30 +0100 Subject: [PATCH] Fix Jenkins builds by rewriting the symlink --- scripts/test.sh | 4 ++++ tests/test-runners/node_modules/realm | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) delete mode 120000 tests/test-runners/node_modules/realm diff --git a/scripts/test.sh b/scripts/test.sh index e563cd6f..e3c6477c 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -341,6 +341,10 @@ case "$TARGET" in popd ;; "test-runners") + # Create a fake realm module that points to the source root so that test-runner tests can require('realm') + rm -rf "$SRCROOT/tests/test-runners/node-modules/realm" + ln -s "$SRCROOT" "$SRCROOT/tests/test-runners/node-modules/realm" + npm install --build-from-source for runner in ava mocha jest; do diff --git a/tests/test-runners/node_modules/realm b/tests/test-runners/node_modules/realm deleted file mode 120000 index a8a4f8c2..00000000 --- a/tests/test-runners/node_modules/realm +++ /dev/null @@ -1 +0,0 @@ -../../.. \ No newline at end of file