storyboard-webclient/bin/build.sh
Monty Taylor 1695d65992 Allow use of node from packages
Change-Id: I4718d0b64f553db3453c1b80c0ea455cf1f685bc
2014-01-18 19:33:05 -08:00

32 lines
537 B
Bash
Executable File

#!/bin/bash
# This script executes the build.
VDISPLAY=99
DIMENSIONS='1280x1024x24'
XVFB=/usr/bin/Xvfb
source $(dirname $0)/setenv.sh
cd $WORKSPACE;
echo "Installing build dependencies"
npm prune
npm install
echo "Installing compile dependencies"
bower prune
bower install
echo "Launching Virtual Frame Buffer"
$XVFB :${VDISPLAY} -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null &
echo "Building"
set +e
DISPLAY=:${VDISPLAY} grunt clean test
result=$?
pkill Xvfb 2>&1 > /dev/null
set -e
exit $result