# Run it as a standalone operation for now.
function test_and_build_eg_browser_client {
echo _.-~= Running Evergreen browser client build/test
- cd /home/opensrf
+ cd /home/opensrf && pwd
wget -N $NODEJS_BINARY
tar xf $NODEJS_TARBIN
echo Return Value = $?
export PATH=$PATH:/home/opensrf/$NODEJS_BINDIR/bin
echo Return Value = $?
+ echo Running npm update
npm update
echo Return Value = $?
- cd /home/opensrf/Evergreen/Open-ILS/web/js/ui/default/staff
+ cd /home/opensrf/Evergreen/Open-ILS/web/js/ui/default/staff && pwd
+ echo Running npm install
npm install # fetch build depencies
echo Return Value = $?
+ echo Running npm run build
npm run build # copy into place; use build-prod for concatenation
echo Return Value = $?
+ echo Running npm test
npm run test # run JS unit tests
echo Return Value = $?
- cd /home/opensrf/Evergreen/Open-ILS/src/eg2/
+ cd /home/opensrf/Evergreen/Open-ILS/src/eg2/ && pwd
+ echo Running npm install
npm install # fetch build depencies
echo Return Value = $?
+ echo Running ng build --prod
ng build --prod # for ang6
echo Return Value = $?
+ echo Running npm test
npm run test # run JS unit tests
echo Return Value = $?
echo End of Evergreen browser client build/test =~-._