Fail travis for lints and warnings (#2301)
Previously analyzer would report these but travis would pass anyway.
diff --git a/.travis.yml b/.travis.yml
index 92245df..655a174 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,7 +11,7 @@
- test: --preset travis --total-shards 5 --shard-index 3
- test: --preset travis --total-shards 5 --shard-index 4
- dartfmt
- - dartanalyzer
+ - dartanalyzer: --fatal-infos --fatal-warnings .
# Create a snapshot to improve startup time. Tests will automatically use this
# snapshot if it's available.