. ~/.nvm/nvm.sh

nvm install 4

rm -rf node_modules
npm install

mkdir browsers
rm -rf browsers/*.app browsers/*.dmg
./node_modules/.bin/browser-downloader browsers
if [ $? -ne 0 ]; then
  echo "Download failed";
  exit 1;
fi

devices=`hdiutil info | grep partition_scheme | awk '{print $1}'`
for x in $devices; do
  hdiutil detach $x
done

./node_modules/.bin/gulp test:local
./node_modules/.bin/gulp test:vm

./node_modules/.bin/gulp test:node

nvm install 0.12

rm -rf node_modules
npm install

./node_modules/.bin/gulp test:node

. ~/.nvm/nvm.sh

nvm install 4

rm -rf node_modules
npm install

mkdir browsers
rm -rf browsers/*.app browsers/*.dmg
./node_modules/.bin/browser-downloader browsers
if [ $? -ne 0 ]; then
  echo "Download failed";
  exit 1;
fi

devices=`hdiutil info | grep partition_scheme | awk '{print $1}'`
for x in $devices; do
  hdiutil detach $x
done

./node_modules/.bin/gulp test:local
./node_modules/.bin/gulp test:vm

./node_modules/.bin/gulp test:node

nvm install 5

rm -rf node_modules
npm install

./node_modules/.bin/gulp test:node

nvm install 0.12

rm -rf node_modules
npm install

./node_modules/.bin/gulp test:node

Add node 5 to the test suite
Add node 5 to the test suite
