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

Side by Side Diff: tools/release/update_node.py

Issue 2847693002: V8: Roll googletest to 1.8.0.
Patch Set: Incorporated http://crrev.com/2849783003 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2017 the V8 project authors. All rights reserved. 2 # Copyright 2017 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ 6 """
7 Use this script to update V8 in a Node.js checkout. 7 Use this script to update V8 in a Node.js checkout.
8 8
9 Requirements: 9 Requirements:
10 - Node.js checkout in which V8 should be updated. 10 - Node.js checkout in which V8 should be updated.
(...skipping 14 matching lines...) Expand all
25 25
26 import argparse 26 import argparse
27 import os 27 import os
28 import shutil 28 import shutil
29 import subprocess 29 import subprocess
30 import sys 30 import sys
31 31
32 TARGET_SUBDIR = os.path.join("deps", "v8") 32 TARGET_SUBDIR = os.path.join("deps", "v8")
33 33
34 SUB_REPOSITORIES = [ ["base", "trace_event", "common"], 34 SUB_REPOSITORIES = [ ["base", "trace_event", "common"],
35 ["testing", "gtest"], 35 ["third_party", "googletest", "src"],
36 ["third_party", "jinja2"], 36 ["third_party", "jinja2"],
37 ["third_party", "markupsafe"] ] 37 ["third_party", "markupsafe"] ]
38 38
39 DELETE_FROM_GITIGNORE = [ "/base", 39 DELETE_FROM_GITIGNORE = [ "/base",
40 "/testing/gtest", 40 "/third_party/googletest/src",
41 "/third_party/jinja2", 41 "/third_party/jinja2",
42 "/third_party/markupsafe" ] 42 "/third_party/markupsafe" ]
43 43
44 # Node.js requires only a single header file from gtest to build V8. 44 # Node.js requires only a single header file from gtest to build V8.
45 # Both jinja2 and markupsafe are required to generate part of the inspector. 45 # Both jinja2 and markupsafe are required to generate part of the inspector.
46 ADD_TO_GITIGNORE = [ "/testing/gtest/*", 46 ADD_TO_GITIGNORE = [ "/third_party/googletest/*",
47 "!/testing/gtest/include", 47 "!/third_party/googletest/src",
48 "/testing/gtest/include/*", 48 "/third_party/googletest/src/*",
49 "!/testing/gtest/include/gtest", 49 "!/third_party/googletest/src/googletest",
50 "/testing/gtest/include/gtest/*", 50 "/third_party/googletest/src/googletest/*",
51 "!/testing/gtest/include/gtest/gtest_prod.h", 51 "!/third_party/googletest/src/googletest/include",
52 "/third_party/googletest/src/googletest/include/*",
53 "!/third_party/googletest/src/googletest/include/gtest",
54 "/third_party/googletest/src/googletest/include/gtest/*",
55 "!/third_party/googletest/src/googletest/include/gtest/gtes t_prod.h",
52 "!/third_party/jinja2", 56 "!/third_party/jinja2",
53 "!/third_party/markupsafe" ] 57 "!/third_party/markupsafe" ]
54 58
55 def RunGclient(path): 59 def RunGclient(path):
56 assert os.path.isdir(path) 60 assert os.path.isdir(path)
57 print ">> Running gclient sync" 61 print ">> Running gclient sync"
58 subprocess.check_call(["gclient", "sync", "--nohooks"], cwd=path) 62 subprocess.check_call(["gclient", "sync", "--nohooks"], cwd=path)
59 63
60 def UninitGit(path): 64 def UninitGit(path):
61 target = os.path.join(path, ".git") 65 target = os.path.join(path, ".git")
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 UpdateTarget([""], options) 165 UpdateTarget([""], options)
162 # Patch .gitignore before updating sub-repositories. 166 # Patch .gitignore before updating sub-repositories.
163 UpdateGitIgnore(options) 167 UpdateGitIgnore(options)
164 for repo in SUB_REPOSITORIES: 168 for repo in SUB_REPOSITORIES:
165 UpdateTarget(repo, options) 169 UpdateTarget(repo, options)
166 if options.commit: 170 if options.commit:
167 CreateCommit(options) 171 CreateCommit(options)
168 172
169 if __name__ == "__main__": 173 if __name__ == "__main__":
170 Main(sys.argv[1:]) 174 Main(sys.argv[1:])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698