Add test to ensure github-repo exists

This commit is contained in:
Joe Ferguson 2016-05-13 13:29:46 -07:00
parent 2e1d4451ef
commit e8a0df65b1
1 changed files with 10 additions and 0 deletions

View File

@ -39,6 +39,16 @@ script:
echo >&2 "Too long (or too many lines):$failed"; echo >&2 "Too long (or too many lines):$failed";
exit 1; exit 1;
fi fi
- failed='';
for repo in */; do
if [ ! -e "$repo/github-repo" ]; then
failed+=" $repo";
fi
done;
if [ "$failed" ]; then
echo >&2 "Missing github-repo for:$failed";
exit 1;
fi
- if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then - if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then
if [ "$(git diff --numstat "$TRAVIS_COMMIT_RANGE" -- '*/README.md')" ]; then if [ "$(git diff --numstat "$TRAVIS_COMMIT_RANGE" -- '*/README.md')" ]; then
echo >&2 'Error:'' at least one repo README.md has changed'; echo >&2 'Error:'' at least one repo README.md has changed';