summaryrefslogtreecommitdiff
path: root/platform/node/scripts/install.sh
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-12-16 14:05:23 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-12-16 17:49:22 -0800
commit7a4e7376e1422964cb7a456f772104e28003f4d2 (patch)
treed5f2c11bf309f94a7e595f785f66ed02454e4e79 /platform/node/scripts/install.sh
parenta903d2eef022518ad579312555bf82272093e01a (diff)
downloadqtlocation-mapboxgl-7a4e7376e1422964cb7a456f772104e28003f4d2.tar.gz
Move platform scripts into platforms
Diffstat (limited to 'platform/node/scripts/install.sh')
-rwxr-xr-xplatform/node/scripts/install.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/platform/node/scripts/install.sh b/platform/node/scripts/install.sh
new file mode 100755
index 0000000000..1edc2c91d9
--- /dev/null
+++ b/platform/node/scripts/install.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+set -e
+set -o pipefail
+
+mapbox_time "checkout_mason" \
+git submodule update --init .mason
+
+export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason"
+
+if [ ${TRAVIS_OS_NAME} == "linux" ]; then
+ mapbox_time "install_mesa" \
+ 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
+
+mapbox_time $NODE_VERSION \
+nvm install $NODE_VERSION
+
+nvm alias default $NODE_VERSION
+
+node --version
+npm --version