X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=test.sh;h=f54d6e0f0efa1054c83a8b995ba992572dc8757e;hb=b941564d6f1d2791c6b9714bd089bd19f4ca67b3;hp=3d3bfbb6c1ae287d2400b52eb1bec8cc5df52bf7;hpb=86a3e64f8f73d854b3b4ac35f52b54bfda3056a4;p=dygraphs.git diff --git a/test.sh b/test.sh index 3d3bfbb..f54d6e0 100755 --- a/test.sh +++ b/test.sh @@ -9,4 +9,11 @@ if [ $? != 0 ]; then exit 1 fi +# Don't run tests if the documentation doesn't parse. +./generate-documentation.py > /dev/null +if [ $? != 0 ]; then + echo Failed to generate documentation. Fix this before running tests. + exit 1 +fi + phantomjs phantom-driver.js