Skip to content

Instantly share code, notes, and snippets.

@manuel-palacio
Created January 14, 2014 15:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save manuel-palacio/8419703 to your computer and use it in GitHub Desktop.
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