axmol/tools/jenkins-scripts/create-template-project.py

20 lines
517 B
Python
Raw Normal View History

2014-01-27 16:46:35 +08:00
import os
2014-01-27 17:22:24 +08:00
languages = ['cpp','lua','javascript']
2014-01-27 16:46:35 +08:00
base_path = 'tools/project-creator/'
create_project = base_path + 'create_project.py'
2014-01-27 17:09:14 +08:00
template_root = base_path + 'templateTest'
2014-01-27 16:46:35 +08:00
# create project
2014-01-27 17:22:24 +08:00
for item in languages:
2014-01-27 16:46:35 +08:00
ret = os.system('python ' + create_project
2014-01-27 17:09:14 +08:00
+ ' -n ' + 'template' + item
+ ' -k ' + 'com.test.template.' + item
2014-01-27 16:46:35 +08:00
+ ' -l ' + item
2014-01-27 17:09:14 +08:00
+ ' -p ' + template_root)
2014-01-27 16:46:35 +08:00
if(ret > 0):
ret = 1
exit(ret)
exit(0)