conditional nvm install

This commit is contained in:
Mike Morris
2015-08-28 16:10:07 -04:00
parent 5d6db325de
commit ef6392234e

View File

@@ -13,8 +13,11 @@ if [ ${TRAVIS_OS_NAME} == "linux" ]; then
mason install mesa 10.4.3
fi
git clone git@github.com:creationix/nvm.git ~/.nvm
pushd ~/.nvm && git checkout `git describe --abbrev=0 --tags` && popd
if [ ! -d ~/.nvm ]; then
git clone https://github.com/creationix/nvm.git ~/.nvm
fi
pushd ~/.nvm && git fetch && git checkout `git describe --abbrev=0 --tags` && popd
source ~/.nvm/nvm.sh
mapbox_time $NODE_VERSION \