فهرست منبع

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
 if [[ $REPLY =~ ^[Yy]$ ]]; then
   echo "Releasing $VERSION ..."
   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
   if [[ -z $SKIP_SAUCE ]]; then
     export SAUCE_BUILD_ID=$VERSION:`date +"%s"`
     export SAUCE_BUILD_ID=$VERSION:`date +"%s"`