Analyze sample code (#10619)

diff --git a/dev/bots/test.dart b/dev/bots/test.dart
index 5c56723..dd62802 100644
--- a/dev/bots/test.dart
+++ b/dev/bots/test.dart
@@ -1,3 +1,7 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
 import 'dart:async';
 import 'dart:convert';
 import 'dart:io';
@@ -37,6 +41,11 @@
       options: <String>['--flutter-repo'],
     );
 
+    // Analyze all the sample code in the repo
+    await _runCommand(dart, <String>[path.join(flutterRoot, 'dev', 'bots', 'analyze-sample-code.dart')],
+      workingDirectory: flutterRoot,
+    );
+
     // Try with the --watch analyzer, to make sure it returns success also.
     // The --benchmark argument exits after one run.
     await _runFlutterAnalyze(flutterRoot,