issue #4116: Updates jenkins scripts.

This commit is contained in:
James Chen 2014-02-26 21:47:23 +08:00
parent e4837e7f94
commit e49b7572e3
1 changed files with 13 additions and 13 deletions

View File

@ -100,19 +100,19 @@ def main():
os.system("cd " + os.environ['WORKSPACE']); os.system("cd " + os.environ['WORKSPACE']);
os.mkdir("android_build_objs") os.mkdir("android_build_objs")
#add symbol link #add symbol link
PROJECTS=["test-cpp", # PROJECTS=["test-cpp",
"test-javascript","test-lua"] # "test-javascript","test-lua"]
print platform.system() # print platform.system()
if(platform.system() == 'Darwin'): # if(platform.system() == 'Darwin'):
for item in PROJECTS: # for item in PROJECTS:
cmd = "ln -s " + os.environ['WORKSPACE']+"/android_build_objs/ " + os.environ['WORKSPACE']+"/tests/"+item+"/proj.android/obj" # cmd = "ln -s " + os.environ['WORKSPACE']+"/android_build_objs/ " + os.environ['WORKSPACE']+"/tests/"+item+"/proj.android/obj"
os.system(cmd) # os.system(cmd)
elif(platform.system() == 'Windows'): # elif(platform.system() == 'Windows'):
for item in PROJECTS: # for item in PROJECTS:
p = item.replace("/", os.sep) # p = item.replace("/", os.sep)
cmd = "mklink /J "+os.environ['WORKSPACE']+os.sep+"tests"+os.sep +p+os.sep+"proj.android"+os.sep+"obj " + os.environ['WORKSPACE']+os.sep+"android_build_objs" # cmd = "mklink /J "+os.environ['WORKSPACE']+os.sep+"tests"+os.sep +p+os.sep+"proj.android"+os.sep+"obj " + os.environ['WORKSPACE']+os.sep+"android_build_objs"
print cmd # print cmd
os.system(cmd) # os.system(cmd)
#build #build
#TODO: add android-linux build #TODO: add android-linux build