Check the examples against whitespace build first

This is to produce stack traces that are easier to understand when an example fails to load.
This commit is contained in:
Éric Lemoine
2013-03-05 11:37:30 +01:00
committed by Tim Schaub
parent 382022bdb5
commit a0ba80bcbb

View File

@@ -384,9 +384,9 @@ def hostexamples(t):
def check_examples(t):
directory = 'build/gh-pages/%(BRANCH)s/'
examples = ['build/gh-pages/%(BRANCH)s/' + e for e in EXAMPLES]
all_examples = examples + \
all_examples = [e + '?mode=whitespace' for e in examples] + \
[e + '?mode=simple' for e in examples] + \
[e + '?mode=whitespace' for e in examples]
examples
for example in all_examples:
t.run('%(PHANTOMJS)s', 'bin/check-example.js', example)