打包脚本支持 RPA_SKIP_TESTS=1 跳过单测(本地应急打包用)
This commit is contained in:
parent
b929f86525
commit
02af3478a7
@ -89,8 +89,13 @@ removeTree(builderWork);
|
||||
|
||||
console.log("[package] typecheck");
|
||||
run("npm", ["run", "typecheck"]);
|
||||
console.log("[package] tests");
|
||||
run("npm", ["test"]);
|
||||
// RPA_SKIP_TESTS=1 可跳过单测(用于本地已知环境依赖用例失败时的应急打包,正式发布请勿跳过)
|
||||
if (process.env.RPA_SKIP_TESTS === "1") {
|
||||
console.log("[package] tests skipped (RPA_SKIP_TESTS=1)");
|
||||
} else {
|
||||
console.log("[package] tests");
|
||||
run("npm", ["test"]);
|
||||
}
|
||||
console.log("[package] build");
|
||||
run("npm", ["run", "build"]);
|
||||
console.log("[package] browser e2e");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user