#!/bin/bash

NODE_VERSION=`node --version | grep -i v0.12.*`
IOJS_VERSION='iojs --version'

echo $NODE_VERSION

if [[ ! $NODE_VERSION && ! IOJS_VERSION ]]; then
    npm install memwatch
else
    npm remove memwatch
fi

#!/bin/bash

NODE_VERSION=`node --version | grep -i v0.1[1-9].*`
IOJS_VERSION=`iojs --version`

echo '#######'
echo "Node Version ${NODE_VERSION}"
echo "Iojs Version ${IOJS_VERSION}"
echo '#######'

if [[ ! $NODE_VERSION && ! $IOJS_VERSION ]]; then
    echo "Going to install memwatch"
    npm install memwatch
else
    echo "Going to uninstall memwatch"
    npm remove memwatch
fi

Make sure trivis tests working on nodejs 0.8/0.10
Make sure trivis tests working on nodejs 0.8/0.10
