4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-04-28 14:44:36 +00:00

36 lines
589 B
Python
Raw Normal View History

2019-07-22 10:20:59 +03:00
import sys
from buildbot.plugins import util
import multiprocessing
import glob
import shutil
def getFactory():
return util.BuildFactory()
def getRepo():
return "";
def getPropertyes():
return []
@util.renderer
def makeCommand(props):
command = ['make']
cpus = multiprocessing.cpu_count()
if cpus:
command.extend(['-j', str(cpus)])
else:
command.extend(['-j', '1'])
return command
def copyRegExp(source, dist):
res = []
for file in glob.glob(source):
res.append(file)
shutil.copy(file, dist)
return res;