mirror of https://github.com/axmolengine/axmol.git
Merge pull request #5258 from lmskater/create-module-project
[Jenkins] add create-template-project.py
This commit is contained in:
commit
e83ddec7b8
|
@ -0,0 +1,19 @@
|
|||
import os
|
||||
|
||||
languages = ['cpp','lua','javascript']
|
||||
base_path = 'tools/project-creator/'
|
||||
create_project = base_path + 'create_project.py'
|
||||
template_root = base_path + 'templateTest'
|
||||
|
||||
# create project
|
||||
for item in languages:
|
||||
ret = os.system('python ' + create_project
|
||||
+ ' -n ' + 'template' + item
|
||||
+ ' -k ' + 'com.test.template.' + item
|
||||
+ ' -l ' + item
|
||||
+ ' -p ' + template_root)
|
||||
if(ret > 0):
|
||||
ret = 1
|
||||
exit(ret)
|
||||
|
||||
exit(0)
|
Loading…
Reference in New Issue