2014-04-02 15:21:44 +08:00
|
|
|
import os
|
|
|
|
print 'Build Config:'
|
|
|
|
print ' Host:MAC'
|
|
|
|
print ' Branch:develop'
|
|
|
|
print ' Target:iOS'
|
|
|
|
if(os.path.exists('tools/jenkins-scripts/ios-build.sh') == False):
|
2015-01-29 08:40:19 +08:00
|
|
|
node_name = os.environ['NODE_NAME']
|
|
|
|
source_dir = '../cocos-2dx-develop-base-repo/node/' + node_name + "/."
|
|
|
|
os.system("cp -r " + source_dir + " .")
|
|
|
|
os.system('git pull origin develop')
|
2014-04-02 15:21:44 +08:00
|
|
|
|
|
|
|
os.system('git submodule update --init --force')
|
|
|
|
ret = os.system('tools/jenkins-scripts/ios-build.sh')
|
|
|
|
os.system('git clean -xdf -f')
|
|
|
|
print 'build exit'
|
|
|
|
print ret
|
|
|
|
if ret == 0:
|
2015-01-29 08:40:19 +08:00
|
|
|
exit(0)
|
2014-04-02 15:21:44 +08:00
|
|
|
else:
|
2015-01-29 08:40:19 +08:00
|
|
|
exit(1)
|