Don't check examples that start with // NOCOMPILE

This commit is contained in:
Tom Payne
2013-11-12 17:57:04 +01:00
parent 9a0ea25f7e
commit eb6dc88a9f

View File

@@ -710,7 +710,9 @@ def host_examples(t):
@target('check-examples', 'host-examples', phony=True)
def check_examples(t):
examples = ['build/hosted/%(BRANCH)s/' + e for e in EXAMPLES]
examples = ['build/hosted/%(BRANCH)s/' + e
for e in EXAMPLES
if not open(e.replace('.html', '.js')).readline().startswith('// NOCOMPILE')]
all_examples = \
[e + '?mode=advanced' for e in examples]
for example in all_examples: