OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """CBuildbot is wrapper around the build process used by the pre-flight queue""" | 7 """CBuildbot is wrapper around the build process used by the pre-flight queue""" |
8 | 8 |
9 import errno | 9 import errno |
10 import heapq | 10 import heapq |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 parser.add_option('-g', '--gsutil', default='', help='Location of gsutil') | 662 parser.add_option('-g', '--gsutil', default='', help='Location of gsutil') |
663 parser.add_option('-c', '--gsutil_archive', default='', | 663 parser.add_option('-c', '--gsutil_archive', default='', |
664 help='Datastore archive location') | 664 help='Datastore archive location') |
665 parser.add_option('--clobber', action='store_true', dest='clobber', | 665 parser.add_option('--clobber', action='store_true', dest='clobber', |
666 default=False, | 666 default=False, |
667 help='Clobbers an old checkout before syncing') | 667 help='Clobbers an old checkout before syncing') |
668 parser.add_option('--debug', action='store_true', dest='debug', | 668 parser.add_option('--debug', action='store_true', dest='debug', |
669 default=False, | 669 default=False, |
670 help='Override some options to run as a developer.') | 670 help='Override some options to run as a developer.') |
671 parser.add_option('--noprebuilts', action='store_false', dest='prebuilts', | 671 parser.add_option('--noprebuilts', action='store_false', dest='prebuilts', |
| 672 default=True, |
672 help="Don't upload prebuilts.") | 673 help="Don't upload prebuilts.") |
673 parser.add_option('--nosync', action='store_false', dest='sync', | 674 parser.add_option('--nosync', action='store_false', dest='sync', |
674 default=True, | 675 default=True, |
675 help="Don't sync before building.") | 676 help="Don't sync before building.") |
676 parser.add_option('--notests', action='store_false', dest='tests', | 677 parser.add_option('--notests', action='store_false', dest='tests', |
677 default=True, | 678 default=True, |
678 help='Override values from buildconfig and run no tests.') | 679 help='Override values from buildconfig and run no tests.') |
679 parser.add_option('-f', '--revisionfile', | 680 parser.add_option('-f', '--revisionfile', |
680 help='file where new revisions are stored') | 681 help='file where new revisions are stored') |
681 parser.add_option('-t', '--tracking-branch', dest='tracking_branch', | 682 parser.add_option('-t', '--tracking-branch', dest='tracking_branch', |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 except: | 800 except: |
800 # Send failure to master bot. | 801 # Send failure to master bot. |
801 if not buildconfig['master'] and buildconfig['important']: | 802 if not buildconfig['master'] and buildconfig['important']: |
802 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) | 803 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) |
803 | 804 |
804 raise | 805 raise |
805 | 806 |
806 | 807 |
807 if __name__ == '__main__': | 808 if __name__ == '__main__': |
808 main() | 809 main() |
OLD | NEW |