Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
export DISPLAY=:1
Xvfb :1 &
#
# Fetch node if we don't have it already
#
node_version=v0.10.16
install_name=node-$node_version-linux-x64
node_home=$PWD/$install_name
if [ ! -e $install_name.tar.gz ]
then
wget http://nodejs.org/dist/$node_version/$install_name.tar.gz
tar xf $install_name.tar.gz
$node_home/bin/npm install -g phantomjs
$node_home/bin/npm install -g lineman
fi
#$node_home/bin/npm install
export PATH=$PATH:$node_home/bin
npm install
lineman clean
lineman spec-ci
lineman build
cd dist
mkdir -p ../target
rm -rf ../target/app.zip
zip -r ../target/app.zip *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment