This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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