Skip to content

Commit

Permalink
Switch to using node 16 for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Jun 30, 2022
1 parent f94db8b commit 1f56b9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Realm/ObjectServerTests/setup_baas.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

MONGODB_VERSION='5.0.6'
GO_VERSION='1.17.8'
NODE_VERSION='13.14.0'
NODE_VERSION='16.5.1'
STITCH_VERSION=DEPENDENCIES["STITCH_VERSION"]

MONGODB_URL="https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-#{MONGODB_VERSION}.tgz"
TRANSPILER_TARGET='node13-macos'
TRANSPILER_TARGET='node16-macos'
SERVER_STITCH_LIB_URL="https://s3.amazonaws.com/stitch-artifacts/stitch-support/stitch-support-macos-debug-4.3.2-721-ge791a2e-patch-5e2a6ad2a4cf473ae2e67b09.tgz"
MONGO_DIR="#{BUILD_DIR}/mongodb-macos-x86_64-#{MONGODB_VERSION}"

Expand Down Expand Up @@ -141,6 +141,9 @@ def setup_stitch
end

puts 'building transpiler'
# Install a newer version of pkg that actually supports recent versions of node
puts `#{exports.length() == 0 ? "" : exports.join(' && ') + ' &&'} \
cd '#{stitch_dir}/etc/transpiler' && yarn add pkg`
puts `#{exports.length() == 0 ? "" : exports.join(' && ') + ' &&'} \
cd '#{stitch_dir}/etc/transpiler' && yarn install && yarn run build -t "#{TRANSPILER_TARGET}" &&
cp -c bin/transpiler #{BUILD_DIR}/bin`
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ case "$COMMAND" in
mkdir .baas
mv build/stitch .baas
source "$(brew --prefix nvm)/nvm.sh" --no-use
nvm install 13.14.0
nvm install 16.5.0
sh build.sh setup-baas
fi

Expand Down

0 comments on commit 1f56b9b

Please sign in to comment.