From 232194646d8b403dc25324ca3117f194a5cbc05c Mon Sep 17 00:00:00 2001 From: lm Date: Fri, 24 Jan 2014 14:40:15 +0800 Subject: [PATCH] [Jenkins] add win32 build in pull-request-builder.py --- tools/jenkins-scripts/pull-request-builder.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/jenkins-scripts/pull-request-builder.py b/tools/jenkins-scripts/pull-request-builder.py index f3ba3c1e5f..7e536dd0a0 100755 --- a/tools/jenkins-scripts/pull-request-builder.py +++ b/tools/jenkins-scripts/pull-request-builder.py @@ -10,6 +10,7 @@ import requests import sys import traceback import platform +import subprocess #set Jenkins build description using submitDescription to mock browser behavior #TODO: need to set parent build description @@ -142,8 +143,12 @@ def main(): #TODO: add ios build #TODO: add mac build #TODO: add win32 build + node_name = os.environ['NODE_NAME'] if(branch == 'develop'): - ret = os.system("python build/android-build.py -n -j10 all") + if(node_name == 'android_mac') or (node_name == 'android_win7'): + ret = os.system("python build/android-build.py -n -j10 all") + elif(node_name == 'win32_win7'): + ret = subprocess.call('"%VS110COMNTOOLS%..\IDE\devenv.com" "build\cocos2d-win32.vc2012.sln" /Build "Debug|Win32"', shell=True) elif(branch == 'master'): ret = os.system("samples/Cpp/TestCpp/proj.android/build_native.sh")