Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: webrtc/tools/testing/setup_apprtc.py

Issue 2861653005: Moving scripts to download and build apprtc/collider. (Closed)
Patch Set: removing download_node.py (it seems unused) Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/tools/testing/prebuilt_apprtc.zip.sha1 ('k') | webrtc/tools/testing/utils.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 #
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
6 # tree. An additional intellectual property rights grant can be found
7 # in the file PATENTS. All contributing project authors may
8 # be found in the AUTHORS file in the root of the source tree.
9
10 """This script sets up AppRTC and its dependencies.
11
12 Requires that depot_tools is installed and in the PATH. This script expects
13 to run with Chrome's base dir as the working directory, e.g. where the .gclient
kjellander_webrtc 2017/05/05 13:32:22 I don't think we should have this limitation. Let'
mbonadei 2017/05/08 12:01:09 Done, now all the scripts are explicit about this.
14 file is. This is what should happen if this script is invoked as a hook action.
15 """
16
17 import os
18 import sys
19
20 import utils
21
kjellander_webrtc 2017/05/05 13:32:22 nit: Two blank lines between top-level definitions
mbonadei 2017/05/08 12:01:09 Done.
22 def main(argv):
23 if len(argv) == 1:
24 return 'Usage %s <path to root directory (where .gclient lives)' % argv[0]
kjellander_webrtc 2017/05/05 13:32:22 I assume the dir argument passed is just where it'
mbonadei 2017/05/08 12:01:09 Done. There was an assumption about the top level
25
26 webrtc_root_path = argv[1]
27 script_path = os.path.join('src', 'webrtc', 'tools', 'testing')
kjellander_webrtc 2017/05/05 13:32:22 as mentioned above, use SCRIPT_DIR or similar for
mbonadei 2017/05/08 12:01:09 Done.
28
29 apprtc_appengine_mercurial_path = os.path.join(
30 script_path, 'download_apprtc_appengine_and_mercurial.py')
31 utils.RunSubprocessWithRetry([apprtc_appengine_mercurial_path,
32 webrtc_root_path])
33
34 download_golang_path = os.path.join(script_path, 'download_golang.py')
35 utils.RunSubprocessWithRetry([download_golang_path, webrtc_root_path])
36
37 copy_apprtc_path = os.path.join(script_path, 'copy_apprtc.py')
38 utils.RunSubprocessWithRetry([copy_apprtc_path])
39
40 build_mercurial_path = os.path.join(script_path, 'build_mercurial_local.py')
kjellander_webrtc 2017/05/05 13:32:22 I guess these build_ scripts doesn't allow us to c
mbonadei 2017/05/08 12:01:09 Done.
41 utils.RunSubprocessWithRetry([build_mercurial_path])
42
43 build_apprtc_collider_path = os.path.join(script_path,
44 'build_apprtc_collider.py')
45 utils.RunSubprocessWithRetry([build_apprtc_collider_path])
46
47
48 if __name__ == '__main__':
49 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « webrtc/tools/testing/prebuilt_apprtc.zip.sha1 ('k') | webrtc/tools/testing/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698