Update Travis to check -short.txt lengths too
This commit is contained in:
parent
2ac98c1b15
commit
ed9d151171
13
.travis.yml
13
.travis.yml
|
|
@ -10,6 +10,19 @@ install:
|
||||||
script:
|
script:
|
||||||
- files="$(find -name '*.md' -print0 | xargs -0 markdownfmt -l)";
|
- files="$(find -name '*.md' -print0 | xargs -0 markdownfmt -l)";
|
||||||
if [ "$files" ]; then
|
if [ "$files" ]; then
|
||||||
|
echo >&2 "Need markdownfmt:";
|
||||||
echo >&2 "$files";
|
echo >&2 "$files";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
- failed='';
|
||||||
|
for short in */README-short.txt; do
|
||||||
|
chars="$(echo -n "$(cat "$short")" | wc -m)";
|
||||||
|
lines="$(cat "$short" | wc -l)";
|
||||||
|
if [ "$chars" -gt 100 -o "$lines" -gt 1 ]; then
|
||||||
|
failed+=" $short";
|
||||||
|
fi
|
||||||
|
done;
|
||||||
|
if [ "$failed" ]; then
|
||||||
|
echo >&2 "Too long (or too many lines):$failed";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue