bring back node ci
This commit is contained in:
parent
33b87e6582
commit
a37fe03e20
|
@ -15,7 +15,6 @@ fi
|
|||
# The 'node' argument will result in realm-node build being downloaded.
|
||||
if [ "$1" = 'node' ]; then
|
||||
CORE_DIR="core-node"
|
||||
SYNC_DIR="sync-node"
|
||||
|
||||
if [ "$(uname)" = 'Darwin' ]; then
|
||||
PLATFORM_TAG="node-osx-"
|
||||
|
@ -29,11 +28,10 @@ else
|
|||
SYNC_DIR='sync'
|
||||
PLATFORM_TAG=""
|
||||
SYNC_PLATFORM_TAG="cocoa-"
|
||||
CORE_DOWNLOAD_FILE="realm-core-$PLATFORM_TAG$REALM_CORE_VERSION.tar.xz"
|
||||
SYNC_DOWNLOAD_FILE="realm-sync-$SYNC_PLATFORM_TAG$REALM_SYNC_VERSION.tar.xz"
|
||||
fi
|
||||
|
||||
CORE_DOWNLOAD_FILE="realm-core-$PLATFORM_TAG$REALM_CORE_VERSION.tar.xz"
|
||||
SYNC_DOWNLOAD_FILE="realm-sync-$SYNC_PLATFORM_TAG$REALM_SYNC_VERSION.tar.xz"
|
||||
|
||||
# Start current working directory at the root of the project.
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
|
@ -105,6 +103,7 @@ else
|
|||
echo "The core library seems to be up to date."
|
||||
fi
|
||||
|
||||
[ -z "$SYNC_DIR" ] && exit 0 # not downloading sync
|
||||
|
||||
if [ ! -e "vendor/$SYNC_DIR" ]; then
|
||||
download_core $SYNC_DIR $REALM_SYNC_VERSION $SYNC_DOWNLOAD_FILE sync
|
||||
|
|
|
@ -154,6 +154,8 @@ case "$TARGET" in
|
|||
cat tests.xml
|
||||
;;
|
||||
"node")
|
||||
npm install --build-from-source
|
||||
|
||||
# Change to a temp directory.
|
||||
cd "$(mktemp -q -d -t realm.node.XXXXXX)"
|
||||
trap "rm -rf '$PWD'" EXIT
|
||||
|
@ -164,6 +166,8 @@ case "$TARGET" in
|
|||
popd
|
||||
;;
|
||||
"test-runners")
|
||||
npm install --build-from-source
|
||||
|
||||
for runner in ava mocha jest; do
|
||||
pushd "$SRCROOT/tests/test-runners/$runner"
|
||||
npm install
|
||||
|
|
|
@ -32,11 +32,7 @@
|
|||
"library_dirs": [ "<(prefix)/src/realm" ]
|
||||
}
|
||||
}, {
|
||||
"conditions": [
|
||||
["OS=='mac'", {
|
||||
"dependencies": [ "vendored-realm" ]
|
||||
}]
|
||||
]
|
||||
"dependencies": [ "vendored-realm" ]
|
||||
}]
|
||||
]
|
||||
},
|
||||
|
@ -65,26 +61,39 @@
|
|||
"direct_dependent_settings": {
|
||||
"library_dirs": [ "<(prefix)/src/realm" ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
["OS=='mac'", {
|
||||
"dependencies": [ "vendored-realm" ]
|
||||
}]
|
||||
]
|
||||
}, {
|
||||
"dependencies": [ "vendored-realm" ]
|
||||
}]
|
||||
],
|
||||
},
|
||||
{
|
||||
"variables": {
|
||||
"realm_vendor_dir%": "<(module_root_dir)/vendor",
|
||||
"vendor_dir%": "<(module_root_dir)/vendor",
|
||||
},
|
||||
"target_name": "vendored-realm",
|
||||
"type": "none",
|
||||
"all_dependent_settings": {
|
||||
"include_dirs": [ "<(realm_vendor_dir)/realm-sync/include" ],
|
||||
"library_dirs": [ "<(realm_vendor_dir)/realm-sync/osx" ]
|
||||
}
|
||||
"conditions": [
|
||||
["realm_enable_sync", {
|
||||
"all_dependent_settings": {
|
||||
"include_dirs": [ "<(module_root_dir)/vendor/realm-sync/include" ],
|
||||
"library_dirs": [ "<(module_root_dir)/vendor/realm-sync/osx" ]
|
||||
}
|
||||
}, {
|
||||
"all_dependent_settings": {
|
||||
"include_dirs": [ "<(module_root_dir)/vendor/core-node/include" ],
|
||||
"library_dirs": [ "<(module_root_dir)/vendor/core-node" ]
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"action_name": "download-realm",
|
||||
"inputs": [ ],
|
||||
"outputs": [ "<(module_root_dir)/vendor/core-node" ],
|
||||
"action": [ "<(module_root_dir)/scripts/download-core.sh", "node" ]
|
||||
}
|
||||
]
|
||||
}]
|
||||
]
|
||||
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue