瀏覽代碼

always use local karma

tags/v9.1.0RC2
Hendrik Leppelsack 8 年之前
父節點
當前提交
1369535d03
共有 1 個檔案被更改,包括 1 行新增13 行删除
  1. 1
    13
      autotest-js.sh

+ 1
- 13
autotest-js.sh 查看文件

@@ -22,19 +22,7 @@ fi
# update/install test packages
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"
fi

if test -z "$KARMA"
then
echo 'Karma module executable not found' >&2
exit 2
fi
KARMA="$PREFIX/node_modules/karma/bin/karma"

NODE_PATH='build/node_modules' KARMA_TESTSUITE="$1" $KARMA start tests/karma.config.js --single-run


Loading…
取消
儲存