mirror of https://github.com/axmolengine/axmol.git
[Jenkins] add win32 build in pull-request-builder.py
This commit is contained in:
parent
7807405138
commit
232194646d
|
@ -10,6 +10,7 @@ import requests
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import platform
|
import platform
|
||||||
|
import subprocess
|
||||||
|
|
||||||
#set Jenkins build description using submitDescription to mock browser behavior
|
#set Jenkins build description using submitDescription to mock browser behavior
|
||||||
#TODO: need to set parent build description
|
#TODO: need to set parent build description
|
||||||
|
@ -142,8 +143,12 @@ def main():
|
||||||
#TODO: add ios build
|
#TODO: add ios build
|
||||||
#TODO: add mac build
|
#TODO: add mac build
|
||||||
#TODO: add win32 build
|
#TODO: add win32 build
|
||||||
|
node_name = os.environ['NODE_NAME']
|
||||||
if(branch == 'develop'):
|
if(branch == 'develop'):
|
||||||
|
if(node_name == 'android_mac') or (node_name == 'android_win7'):
|
||||||
ret = os.system("python build/android-build.py -n -j10 all")
|
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'):
|
elif(branch == 'master'):
|
||||||
ret = os.system("samples/Cpp/TestCpp/proj.android/build_native.sh")
|
ret = os.system("samples/Cpp/TestCpp/proj.android/build_native.sh")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue