octavia-dashboard/neutron_lbaas_dashboard/post_install.sh
Mark Vanderwiel 6acf159492 fix unit tests
in log:
"xStatic libraries not found, please set up venv"
Added the post npm install step to setup the venv which
includes the static libraries and horizon.
And include that path in the base search paths for karma
and allow development to run tests as well.
Pull in test-shim.js from horizon master.

Closes-Bug: #1538264
Change-Id: Ia83a45f9e18335fa7802267d428d62b99a731dfe
2016-04-04 19:13:07 +00:00

14 lines
443 B
Bash
Executable File

#!/bin/bash -x
# This script will be executed inside npm postinstall task, see package.json
# pull down the test shim from horizon master because it's not
# included in the installed horizon packages
if [ ! -f test-shim.js ];
then
wget -nv -t 3 https://raw.githubusercontent.com/openstack/horizon/master/test-shim.js
fi
echo "Creating a tox env which will contain xStatic libraries, horizon, and openstack_dashboard"
tox -epy27 --notest;