diff --git a/travis-ci.sh b/travis-ci.sh index e2af598..7005767 100755 --- a/travis-ci.sh +++ b/travis-ci.sh @@ -21,3 +21,8 @@ dub fetch doveralls dub run doveralls --compiler=${DC} fi + +# check for trailing whitespace (needs to be done only once per build) +if [ "$COVERAGE" = true ]; then + find . -type f -name '*.d' -exec grep -Hn "[[:blank:]]$" {} \; +fi