Merge spec and src lint targets

This commit is contained in:
Tom Payne
2013-03-04 20:51:27 +01:00
parent f6fe7bd36c
commit 4eebe5aaf2
2 changed files with 4 additions and 11 deletions

View File

@@ -229,15 +229,15 @@ def serve_precommit(t):
t.run('%(JAVA)s', '-jar', PLOVR_JAR, 'serve', 'build/ol-all.json', 'test/test.json')
virtual('lint', 'build/lint-src-timestamp', 'build/lint-spec-timestamp', 'build/check-requires-timestamp')
virtual('lint', 'build/lint-timestamp', 'build/check-requires-timestamp')
@target('build/lint-src-timestamp', SRC, INTERNAL_SRC, EXTERNAL_SRC, EXAMPLES_SRC, precious=True)
@target('build/lint-timestamp', SRC, INTERNAL_SRC, EXTERNAL_SRC, EXAMPLES_SRC, SPEC, precious=True)
def build_lint_src_timestamp(t):
limited_doc_files = [path
for path in ifind('externs', 'build/src/external/externs')
if path.endswith('.js')]
t.run('%(GJSLINT)s', '--strict', '--limited_doc_files=%s' % (','.join(limited_doc_files),), t.newer(SRC, INTERNAL_SRC, EXTERNAL_SRC, EXAMPLES_SRC))
t.run('%(GJSLINT)s', '--strict', '--limited_doc_files=%s' % (','.join(limited_doc_files),), t.newer(t.dependencies))
t.touch()
@@ -331,12 +331,6 @@ def build_check_requires_timestamp(t):
t.touch()
@target('build/lint-spec-timestamp', SPEC, precious=True)
def build_lint_spec_timestamp(t):
t.run('%(GJSLINT)s', '--strict', t.newer(SPEC))
t.touch()
virtual('plovr', PLOVR_JAR)