Skip to content

Commit

Permalink
Update bin/compile
Browse files Browse the repository at this point in the history
  • Loading branch information
latentflip committed Oct 4, 2012
1 parent faee766 commit 441f7a7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions bin/compile
Expand Up @@ -176,3 +176,33 @@ echo "Dependencies installed" | indent
echo "-----> Building runtime environment"
mkdir -p $BUILD_DIR/.profile.d
echo "export PATH=\"\$HOME/bin:\$HOME/node_modules/.bin:\$PATH\"" > $BUILD_DIR/.profile.d/nodejs.sh




BUILD_DIR=$1
CACHE_DIR=$2

# config
VERSION="1.6.1"
S3_BUCKET="stomita-buildpack-phantomjs"

# s3 packages
FILE_NAME="buildpack-phantomjs-${VERSION}.tar.gz"
BUILDPACK_PHANTOMJS_PACKAGE="http://${S3_BUCKET}.s3.amazonaws.com/${FILE_NAME}"

mkdir -p $CACHE_DIR
if ! [ -e $CACHE_DIR/$FILE_NAME ]; then
echo "-----> Fetching PhantomJS buildpack binaries"
curl $BUILDPACK_PHANTOMJS_PACKAGE -s -o $CACHE_DIR/$FILE_NAME
fi

echo "-----> Extracting PhantomJS binaries"
mkdir -p $BUILD_DIR/vendor/phantomjs
tar zxf $CACHE_DIR/$FILE_NAME -C $BUILD_DIR/vendor/phantomjs


echo "-----> Cloning casperjs"

cd $BUILD_DIR/vendor
git clone git://github.com/n1k0/casperjs.git

0 comments on commit 441f7a7

Please sign in to comment.