浏览代码

build: update release script

Evan You 8 年之前
父节点
当前提交
83037828d7
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      build/release.sh

+ 7 - 5
build/release.sh

@@ -12,11 +12,13 @@ echo
 if [[ $REPLY =~ ^[Yy]$ ]]; then
   echo "Releasing $VERSION ..."
 
-  npm run lint
-  npm run flow
-  npm run test:cover
-  npm run test:e2e
-  npm run test:ssr
+  if [[ -z $SKIP_TESTS ]]; then
+    npm run lint
+    npm run flow
+    npm run test:cover
+    npm run test:e2e
+    npm run test:ssr
+  fi
 
   if [[ -z $SKIP_SAUCE ]]; then
     export SAUCE_BUILD_ID=$VERSION:`date +"%s"`