You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/04 08:24:47 UTC

[13/19] incubator-weex git commit: * [test] danger file log

* [test] danger file log


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/456097f8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/456097f8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/456097f8

Branch: refs/heads/release-0.16
Commit: 456097f812ccad78f4e6b6e4451e30327ec6c264
Parents: afb6476
Author: gurisxie <27...@qq.com>
Authored: Mon Oct 2 11:28:33 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 dangerfile-android.js | 6 +++---
 dangerfile-ios.js     | 6 +++---
 dangerfile-jsfm.js    | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/456097f8/dangerfile-android.js
----------------------------------------------------------------------
diff --git a/dangerfile-android.js b/dangerfile-android.js
index f10dd94..0e2bf8a 100644
--- a/dangerfile-android.js
+++ b/dangerfile-android.js
@@ -91,18 +91,18 @@ if (!hasAndroidFile && danger.git.deleted_files) {
     return f;
   });
 }
-
+console.log('-----------------------------hasAndroidFile-----------------------------:'+hasAndroidFile);
 if(hasAndroidFile){
   var runTestCmd='source ~/.bash_profile; '
     +'cd android; '
     +'./gradlew clean assembleDebug :weex_sdk:testDebugUnitTest --info -PdisableCov=true '
     +'-Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx512m '
     +'-XX:+HeapDumpOnOutOfMemoryError" -Dfile.encoding=UTF-8 '
-  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000 }).code == 0;
+  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000, maxBuffer: 200 * 1024 * 1024 }).code == 0;
   if(!runSuccess){
     fail("android platform run unit test failed!");
   }
 }else{
-  message('has no android file changed,skip test!');
+  console.log('has no android file changed!');
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/456097f8/dangerfile-ios.js
----------------------------------------------------------------------
diff --git a/dangerfile-ios.js b/dangerfile-ios.js
index 007d830..eb48577 100644
--- a/dangerfile-ios.js
+++ b/dangerfile-ios.js
@@ -91,17 +91,17 @@ if (!hasIosFile && danger.git.deleted_files) {
     return f;
   });
 }
-
+console.log('-----------------------------hasIosFile-----------------------------:'+hasIosFile);
 if(hasIosFile){
   var runTestCmd='source ~/.bash_profile; '
     +'xcodebuild -project ios/sdk/WeexSDK.xcodeproj test '
     +'-scheme WeexSDKTests CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO '
     +'-destination "platform=iOS Simulator,name=iPhone 6"'
-  runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000 }).code == 0;
+  runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000, maxBuffer: 200 * 1024 * 1024 }).code == 0;
   if(!runSuccess){
     fail("ios platform run unit test failed!");
   }
 }else{
-  message('has no ios file changed,skip test!');
+  console.log('has no ios file changed!');
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/456097f8/dangerfile-jsfm.js
----------------------------------------------------------------------
diff --git a/dangerfile-jsfm.js b/dangerfile-jsfm.js
index 71d6402..c9361c2 100644
--- a/dangerfile-jsfm.js
+++ b/dangerfile-jsfm.js
@@ -91,15 +91,15 @@ if (!hasJsfmFile && danger.git.deleted_files) {
     return f;
   });
 }
-
+console.log('-----------------------------hasJsfmFile-----------------------------:'+hasJsfmFile);
 if(hasJsfmFile){
   var runTestCmd='source ~/.bash_profile; '
     + 'npm run build && npm run test'
-  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000 }).code == 0;
+  var runSuccess = shell.exec(runTestCmd,{ async: false, timeout: 8 * 60 * 1000, maxBuffer: 200 * 1024 * 1024 }).code == 0;
   if(!runSuccess){
     fail("jsfm run test failed!");
   }
 }else{
-  message('has no jsfm file changed,skip test!');
+  console.log('has no jsfm file changed!');
 }