From 4bd51d8988b0af76a8c9e8cb38c537fc53346c20 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 30 Dec 2019 18:47:49 -0500 Subject: [PATCH] CI: set nodejs version to 10 on main scripts nvm can run within a bash shell only. --- ci/install.sh | 2 ++ ci/run_tests.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ci/install.sh b/ci/install.sh index a6cd955da5..3364edfe70 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -22,6 +22,8 @@ echo "Install neovim RubyGem." gem install --no-document --version ">= 0.8.0" neovim echo "Install neovim npm package" +source ~/.nvm/nvm.sh +nvm use 10 npm install -g neovim npm link neovim diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 6b2f69293c..844e9559ef 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -19,6 +19,8 @@ exit_suite --continue enter_suite tests +source ~/.nvm/nvm.sh +nvm use 10 export TREE_SITTER_DIR=$HOME/tree-sitter-build/ if test "$CLANG_SANITIZER" != "TSAN" ; then