From 06ae2ba2a67da908d6cfe7e8d9ebf0aff13a16b6 Mon Sep 17 00:00:00 2001 From: heliclei Date: Mon, 14 Jul 2014 15:30:11 +0800 Subject: [PATCH 1/2] check libcpp-empty-test.so size after successful build --- tools/jenkins-scripts/pull-request-builder.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/jenkins-scripts/pull-request-builder.py b/tools/jenkins-scripts/pull-request-builder.py index eb36154c49..c5430e3d7d 100755 --- a/tools/jenkins-scripts/pull-request-builder.py +++ b/tools/jenkins-scripts/pull-request-builder.py @@ -201,6 +201,12 @@ def main(): local_apk = sample_dir + 'bin/CppTests-debug.apk' backup_apk = os.environ['BACKUP_PATH'] + 'CppTests_' + str(pr_num) + '.apk' os.system('cp ' + local_apk + ' ' + backup_apk) + ret = os.system("python build/android-build.py -p 10 -b release cpp-empty-test") + if(ret == 0): + _path = 'tests/cpp-empty-test/proj.android/libs/armeabi/libcpp_empty_test.so' + filesize = os.path.getsize(_path) + pr_desc = pr_desc + '

size of libcpp_empty_test is:' + str(filesize/1024) + 'kb

' + set_description(pr_desc, target_url) elif(node_name == 'win32_win7'): ret = subprocess.call('"%VS110COMNTOOLS%..\IDE\devenv.com" "build\cocos2d-win32.vc2012.sln" /Build "Debug|Win32"', shell=True) elif(node_name == 'ios_mac'): From 9812532103b442dddc3d014eee7b63b8cbd5473d Mon Sep 17 00:00:00 2001 From: heliclei Date: Mon, 14 Jul 2014 15:51:04 +0800 Subject: [PATCH 2/2] [ci skip]add .so to file name --- tools/jenkins-scripts/pull-request-builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/jenkins-scripts/pull-request-builder.py b/tools/jenkins-scripts/pull-request-builder.py index c5430e3d7d..a64d6e0403 100755 --- a/tools/jenkins-scripts/pull-request-builder.py +++ b/tools/jenkins-scripts/pull-request-builder.py @@ -205,7 +205,7 @@ def main(): if(ret == 0): _path = 'tests/cpp-empty-test/proj.android/libs/armeabi/libcpp_empty_test.so' filesize = os.path.getsize(_path) - pr_desc = pr_desc + '

size of libcpp_empty_test is:' + str(filesize/1024) + 'kb

' + pr_desc = pr_desc + '

size of libcpp_empty_test.so is:' + str(filesize/1024) + 'kb

' set_description(pr_desc, target_url) elif(node_name == 'win32_win7'): ret = subprocess.call('"%VS110COMNTOOLS%..\IDE\devenv.com" "build\cocos2d-win32.vc2012.sln" /Build "Debug|Win32"', shell=True)