mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Integrate scanning into build
This commit is contained in:
parent
9ba5c8cea8
commit
3317cd84d3
3 changed files with 53 additions and 33 deletions
9
build.py
9
build.py
|
|
@ -127,6 +127,15 @@ for app in apps:
|
|||
javacc_path, not refreshed_source)
|
||||
refreshed_source = True
|
||||
|
||||
# Scan before building...
|
||||
buildprobs = common.scan_source(build_dir)
|
||||
if len(buildprobs) > 0:
|
||||
print 'Scanner found ' + str(len(buildprobs)) + ' problems:'
|
||||
for problem in buildprobs:
|
||||
print '...' + problem
|
||||
raise BuildException("Can't build due to " +
|
||||
str(len(buildprobs)) + " scanned problems")
|
||||
|
||||
# Build the source tarball right before we build the release...
|
||||
tarname = app['id'] + '_' + thisbuild['vercode'] + '_src'
|
||||
tarball = tarfile.open(os.path.join(tmp_dir,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue