More refinement to dart analyzer command.
diff --git a/tool/travis.sh b/tool/travis.sh
index 5e01eee..c427b2e 100755
--- a/tool/travis.sh
+++ b/tool/travis.sh
@@ -18,7 +18,7 @@
 set -e
 
 # Verify that the libraries are error free.
-grep -Rl --include "*.dart" --exclude-dir="packages" '^library .*;$' . | \
+grep -Rl --include "*.dart" --exclude-dir="packages" '^library .*;$' lib/ test/ | \
     xargs dartanalyzer --fatal-warnings
 
 # Start chromedriver.