mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-20 20:00:37 +02:00
Record successful/failed builds and print a summary afterwards
This commit is contained in:
parent
93330e3ff3
commit
adb98b059e
13
build.py
13
build.py
@ -48,6 +48,9 @@ parser.add_option("-p", "--package", default=None,
|
|||||||
# Get all apps...
|
# Get all apps...
|
||||||
apps = common.read_metadata(options.verbose)
|
apps = common.read_metadata(options.verbose)
|
||||||
|
|
||||||
|
failed_apps = {}
|
||||||
|
build_succeeded = []
|
||||||
|
|
||||||
output_dir = 'repo'
|
output_dir = 'repo'
|
||||||
if not os.path.isdir(output_dir):
|
if not os.path.isdir(output_dir):
|
||||||
print "Creating output directory"
|
print "Creating output directory"
|
||||||
@ -476,10 +479,20 @@ for app in apps:
|
|||||||
os.remove(dest_unsigned)
|
os.remove(dest_unsigned)
|
||||||
except BuildException as be:
|
except BuildException as be:
|
||||||
print "Could not build app %s due to BuildException: %s" % (app['id'], be)
|
print "Could not build app %s due to BuildException: %s" % (app['id'], be)
|
||||||
|
failed_apps[app['id']] = be
|
||||||
except VCSException as vcse:
|
except VCSException as vcse:
|
||||||
print "VCS error while building app %s: %s" % (app['id'], vcse)
|
print "VCS error while building app %s: %s" % (app['id'], vcse)
|
||||||
|
failed_apps[app['id']] = vcse
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print "Could not build app %s due to unknown error: %s" % (app['id'], e)
|
print "Could not build app %s due to unknown error: %s" % (app['id'], e)
|
||||||
|
failed_apps[app['id']] = e
|
||||||
|
build_succeeded.append(app)
|
||||||
|
|
||||||
|
for fa in failed_apps:
|
||||||
|
print "Build for app %s failed: %s" % (fa, failed_apps[fa])
|
||||||
|
|
||||||
|
for app in build_succeeded:
|
||||||
|
print "success: %s" % (app['id'])
|
||||||
|
|
||||||
print "Finished."
|
print "Finished."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user