Integrate scanning into build

This commit is contained in:
Ciaran Gultnieks 2012-02-02 22:13:31 +00:00
parent 9ba5c8cea8
commit 3317cd84d3
3 changed files with 53 additions and 33 deletions

View file

@ -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,