Merge pull request #25304 from owncloud/local-karma
Always use local karma
This commit is contained in:
commit
8f90259b02
|
@ -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)"
|
|
||||||
|
|
||||||
# If not installed globally, try local version
|
|
||||||
if test -z "$KARMA"
|
|
||||||
then
|
|
||||||
KARMA="$PREFIX/node_modules/karma/bin/karma"
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue