From e8a0df65b1fc1069c853bd031292048a5c4938df Mon Sep 17 00:00:00 2001 From: Joe Ferguson Date: Fri, 13 May 2016 13:29:46 -0700 Subject: [PATCH] Add test to ensure github-repo exists --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9b2f80b3f..53d954071 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,6 +39,16 @@ script: echo >&2 "Too long (or too many lines):$failed"; exit 1; 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 [ "$(git diff --numstat "$TRAVIS_COMMIT_RANGE" -- '*/README.md')" ]; then echo >&2 'Error:'' at least one repo README.md has changed';