Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: sitescripts/extensions/bin/createNightlies.py

Issue 8851004: Added Opera extension type (Closed)
Patch Set: Created Nov. 13, 2012, 9:46 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .hgsubstate ('k') | sitescripts/extensions/bin/updateDownloadLinks.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # coding: utf-8 1 # coding: utf-8
2 2
3 # This file is part of the Adblock Plus web scripts, 3 # This file is part of the Adblock Plus web scripts,
4 # Copyright (C) 2006-2012 Eyeo GmbH 4 # Copyright (C) 2006-2012 Eyeo GmbH
5 # 5 #
6 # Adblock Plus is free software: you can redistribute it and/or modify 6 # Adblock Plus is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 3 as 7 # it under the terms of the GNU General Public License version 3 as
8 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
9 # 9 #
10 # Adblock Plus is distributed in the hope that it will be useful, 10 # Adblock Plus is distributed in the hope that it will be useful,
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 363
364 nightlyConfig = ConfigParser.SafeConfigParser() 364 nightlyConfig = ConfigParser.SafeConfigParser()
365 nightlyConfigFile = get_config().get('extensions', 'nightliesData') 365 nightlyConfigFile = get_config().get('extensions', 'nightliesData')
366 if os.path.exists(nightlyConfigFile): 366 if os.path.exists(nightlyConfigFile):
367 nightlyConfig.read(nightlyConfigFile) 367 nightlyConfig.read(nightlyConfigFile)
368 368
369 # build all extensions specified in the configuration file 369 # build all extensions specified in the configuration file
370 # and generate changelogs and documentations for each: 370 # and generate changelogs and documentations for each:
371 data = None 371 data = None
372 for repo in Configuration.getRepositoryConfigurations(nightlyConfig): 372 for repo in Configuration.getRepositoryConfigurations(nightlyConfig):
373 # No Opera build automation yet
374 if repo.type == 'opera':
375 continue
376
373 build = None 377 build = None
374 try: 378 try:
375 build = NightlyBuild(repo) 379 build = NightlyBuild(repo)
376 if build.hasChanges(): 380 if build.hasChanges():
377 build.run() 381 build.run()
378 except Exception, ex: 382 except Exception, ex:
379 print >>sys.stderr, "The build for %s failed:" % repo 383 print >>sys.stderr, "The build for %s failed:" % repo
380 traceback.print_exc() 384 traceback.print_exc()
381 385
382 file = open(nightlyConfigFile, 'wb') 386 file = open(nightlyConfigFile, 'wb')
383 nightlyConfig.write(file) 387 nightlyConfig.write(file)
384 388
385 389
386 if __name__ == '__main__': 390 if __name__ == '__main__':
387 main() 391 main()
OLDNEW
« no previous file with comments | « .hgsubstate ('k') | sitescripts/extensions/bin/updateDownloadLinks.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld