Installing nvm from kokoro scripts.

This commit is contained in:
Nicolas "Pixel" Noble 2018-05-02 01:20:08 +02:00
parent e35856061e
commit 5f47953c88
3 changed files with 6 additions and 8 deletions

View File

@ -12,10 +12,6 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
powershell -c "& { iwr https://raw.githubusercontent.com/grumpycoders/nvm-ps/master/nvm.ps1 | iex }"
SET PATH=%APPDATA%\nvm-ps;%APPDATA%\nvm-ps\nodejs;%PATH%
call nvm install 10
call nvm use 10

View File

@ -14,8 +14,9 @@
@echo "Starting Windows build"
@rem https://github.com/mapbox/node-pre-gyp/issues/362
call npm install -g node-gyp
powershell -c "& { iwr https://raw.githubusercontent.com/grumpycoders/nvm-ps/master/nvm.ps1 | iex }"
SET PATH=%APPDATA%\nvm-ps;%APPDATA%\nvm-ps\nodejs;%PATH%
cd /d %~dp0
cd ..\..

View File

@ -13,8 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# https://github.com/mapbox/node-pre-gyp/issues/362
npm install -g node-gyp
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
set -ex
cd $(dirname $0)/../..