def do_build(context, solution, target): mdtool = solution["mdtool"] solutionfile = solution["sln"] msbuild = context.env['MDTOOLBUILDCMD'] if mdtool else context.env['MSBUILDCMD'] targetswitch = "-t:" if mdtool else "/t:" buildshell = "%(msbuild)s %(sln)s %(targetswitch)sBuild" % {'sln':solutionfile, 'msbuild':msbuild, 'targetswitch':targetswitch} shell(buildshell)
def clean_debian(context): shell('rm -f ../ohos*.tar.gz ../ohos*.deb ../ohos*.changes ../ohos*.dsc')
def make_pkg(context): version = context.env["PACKAGE_VERSION"] shell('dch --newversion='+version+' < /bin/echo "automated hudson build"') shell(context.arch_vars["setup"] + "&&" + context.arch_vars["compiler"])