Skip to content
Snippets Groups Projects
Commit 1369535d authored by Hendrik Leppelsack's avatar Hendrik Leppelsack
Browse files

always use local karma

parent 1e1903e4
No related branches found
No related tags found
No related merge requests found
...@@ -22,19 +22,7 @@ fi ...@@ -22,19 +22,7 @@ fi
# update/install test packages # update/install test packages
mkdir -p "$PREFIX" && $NPM install --link --prefix "$PREFIX" || exit 3 mkdir -p "$PREFIX" && $NPM install --link --prefix "$PREFIX" || exit 3
KARMA="$(which karma 2>/dev/null)" KARMA="$PREFIX/node_modules/karma/bin/karma"
# If not installed globally, try local version
if test -z "$KARMA"
then
KARMA="$PREFIX/node_modules/karma/bin/karma"
fi
if test -z "$KARMA"
then
echo 'Karma module executable not found' >&2
exit 2
fi
NODE_PATH='build/node_modules' KARMA_TESTSUITE="$1" $KARMA start tests/karma.config.js --single-run NODE_PATH='build/node_modules' KARMA_TESTSUITE="$1" $KARMA start tests/karma.config.js --single-run
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment