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

Side by Side Diff: tools/presubmit.py

Issue 10383128: Prepare for using GYP build on buildbots (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 8 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 | Annotate | Revision Log
« no previous file with comments | « tools/check-static-initializers.sh ('k') | tools/test-wrapper-gypbuild.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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 return False 296 return False
297 297
298 def GetPathsToSearch(self): 298 def GetPathsToSearch(self):
299 return ['.'] 299 return ['.']
300 300
301 def IgnoreDir(self, name): 301 def IgnoreDir(self, name):
302 return (super(SourceProcessor, self).IgnoreDir(name) 302 return (super(SourceProcessor, self).IgnoreDir(name)
303 or (name == 'third_party') 303 or (name == 'third_party')
304 or (name == 'gyp') 304 or (name == 'gyp')
305 or (name == 'out') 305 or (name == 'out')
306 or (name == 'obj')) 306 or (name == 'obj')
307 or (name == 'DerivedSources'))
307 308
308 IGNORE_COPYRIGHTS = ['cpplint.py', 309 IGNORE_COPYRIGHTS = ['cpplint.py',
309 'earley-boyer.js', 310 'earley-boyer.js',
310 'raytrace.js', 311 'raytrace.js',
311 'crypto.js', 312 'crypto.js',
312 'libraries.cc', 313 'libraries.cc',
313 'libraries-empty.cc', 314 'libraries-empty.cc',
314 'jsmin.py', 315 'jsmin.py',
315 'regexp-pcre.js'] 316 'regexp-pcre.js']
316 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] 317 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js']
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 print "Running copyright header and trailing whitespaces check..." 379 print "Running copyright header and trailing whitespaces check..."
379 success = SourceProcessor().Run(workspace) and success 380 success = SourceProcessor().Run(workspace) and success
380 if success: 381 if success:
381 return 0 382 return 0
382 else: 383 else:
383 return 1 384 return 1
384 385
385 386
386 if __name__ == '__main__': 387 if __name__ == '__main__':
387 sys.exit(Main()) 388 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/check-static-initializers.sh ('k') | tools/test-wrapper-gypbuild.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698