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 04:28:10 UTC
[07/14] 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/5f16b33c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/5f16b33c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/5f16b33c
Branch: refs/heads/release-0.16
Commit: 5f16b33ce745b4840d4ca298a08859d275423e32
Parents: 587be0d
Author: gurisxie <27...@qq.com>
Authored: Mon Oct 2 11:28:33 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 2 11:45:36 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/5f16b33c/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/5f16b33c/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/5f16b33c/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!');
}