Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
11c2032a
Commit
11c2032a
authored
Mar 20, 2017
by
Ian Hickson
Committed by
GitHub
Mar 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run both regular and --watch analysis on Travis (#8913)
We keep breaking --watch because we don't test it.
parent
8aa43149
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
test.dart
dev/bots/test.dart
+13
-0
No files found.
dev/bots/test.dart
View file @
11c2032a
...
...
@@ -13,6 +13,12 @@ String flutterTestArgs = Platform.environment['FLUTTER_TEST_ARGS'];
/// arguments to flutter test. For example, you might want to call this
/// script using FLUTTER_TEST_ARGS=--local-engine=host_debug_unopt to
/// use your own build of the engine.
///
/// To run the analysis part, run it with SHARD=analyze
///
/// For example:
/// SHARD=analyze bin/cache/dart-sdk/bin/dart dev/bots/test.dart
/// FLUTTER_TEST_ARGS=--local-engine=host_debug_unopt bin/cache/dart-sdk/bin/dart dev/bots/test.dart
Future
<
Null
>
main
()
async
{
if
(
Platform
.
environment
[
'SHARD'
]
==
'docs'
)
{
print
(
'
\
x1B[32mDONE: test.dart does nothing in the docs shard.
\
x1B[0m'
);
...
...
@@ -22,6 +28,13 @@ Future<Null> main() async {
options:
<
String
>[
'--flutter-repo'
],
);
// Try with the --watch analyzer, to make sure it returns success also.
// The --benchmark argument exits after one run.
await
_runFlutterAnalyze
(
flutterRoot
,
options:
<
String
>[
'--flutter-repo'
,
'--watch'
,
'--benchmark'
],
);
// Try an analysis against a big version of the gallery.
await
_runCmd
(
dart
,
<
String
>[
p
.
join
(
flutterRoot
,
'dev'
,
'tools'
,
'mega_gallery.dart'
)],
workingDirectory:
flutterRoot
,
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment