f442646269
bower is deprecated and intended to be replaced. yarn is the recommended replacement for both things installed via npm and things installed via bower. Move the bower resources into package.json and add the yarn.lock file. Zuul has support for installing yarn if a yarn.lock file is found and using it to install things. Change-Id: I848f22dce6196b2df9de4b9f585e857e03cdb0d7
28 lines
471 B
Bash
Executable File
28 lines
471 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 "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
|