OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license | 4 # Use of this source code is governed by a BSD-style license |
5 # that can be found in the LICENSE file in the root of the source | 5 # that can be found in the LICENSE file in the root of the source |
6 # tree. An additional intellectual property rights grant can be found | 6 # tree. An additional intellectual property rights grant can be found |
7 # in the file PATENTS. All contributing project authors may | 7 # in the file PATENTS. All contributing project authors may |
8 # be found in the AUTHORS file in the root of the source tree. | 8 # be found in the AUTHORS file in the root of the source tree. |
9 | 9 |
10 """Script to automatically roll dependencies in the WebRTC DEPS file.""" | 10 """Script to automatically roll dependencies in the WebRTC DEPS file.""" |
11 | 11 |
12 import argparse | 12 import argparse |
13 import base64 | 13 import base64 |
14 import collections | 14 import collections |
15 import logging | 15 import logging |
16 import os | 16 import os |
17 import re | 17 import re |
18 import subprocess | 18 import subprocess |
19 import sys | 19 import sys |
20 import urllib | 20 import urllib |
21 | 21 |
22 | 22 |
23 # Skip these dependencies (list without solution name prefix). | 23 # Skip these dependencies (list without solution name prefix). |
24 DONT_AUTOROLL_THESE = [ | 24 DONT_AUTOROLL_THESE = [ |
25 'src/third_party/gflags/src', | |
26 'src/third_party/winsdk_samples', | 25 'src/third_party/winsdk_samples', |
27 'src/examples/androidtests/third_party/gradle', | 26 'src/examples/androidtests/third_party/gradle', |
28 ] | 27 ] |
29 | 28 |
30 # Run these CQ trybots in addition to the default ones in infra/config/cq.cfg. | 29 # Run these CQ trybots in addition to the default ones in infra/config/cq.cfg. |
31 EXTRA_TRYBOTS = ( | 30 EXTRA_TRYBOTS = ( |
32 'master.internal.tryserver.corp.webrtc:linux_internal' | 31 'master.internal.tryserver.corp.webrtc:linux_internal' |
33 ) | 32 ) |
34 | 33 |
35 WEBRTC_URL = 'https://webrtc.googlesource.com/src' | 34 WEBRTC_URL = 'https://webrtc.googlesource.com/src' |
(...skipping 447 matching lines...) Loading... |
483 if _IsTreeClean(): | 482 if _IsTreeClean(): |
484 logging.info("No DEPS changes detected, skipping CL creation.") | 483 logging.info("No DEPS changes detected, skipping CL creation.") |
485 else: | 484 else: |
486 _LocalCommit(commit_msg, opts.dry_run) | 485 _LocalCommit(commit_msg, opts.dry_run) |
487 _UploadCL(opts.dry_run, opts.skip_cq) | 486 _UploadCL(opts.dry_run, opts.skip_cq) |
488 return 0 | 487 return 0 |
489 | 488 |
490 | 489 |
491 if __name__ == '__main__': | 490 if __name__ == '__main__': |
492 sys.exit(main()) | 491 sys.exit(main()) |
OLD | NEW |