summaryrefslogtreecommitdiff
path: root/platform/node/scripts/install.sh
blob: b550933cd97de7eb261af03f0691bd1869873858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash

set -e
set -o pipefail

git submodule update --init .mason

export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason"

if [ ${TRAVIS_OS_NAME} == "linux" ]; then
    mason install mesa 10.4.3
fi

if [ ! -d ~/.nvm ]; then
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.28.0/install.sh | bash
fi

source ~/.nvm/nvm.sh

nvm install $NODE_VERSION
nvm alias default $NODE_VERSION

node --version
npm --version