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
77142b82
Unverified
Commit
77142b82
authored
Mar 08, 2019
by
Jonah Williams
Committed by
GitHub
Mar 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "re-enable dart2js test (#29010)" (#29030)
This reverts commit
6a7f231d
.
parent
6a7f231d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
19 deletions
+16
-19
test.dart
dev/bots/test.dart
+12
-11
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+2
-2
build_web.dart
packages/flutter_tools/lib/src/commands/build_web.dart
+2
-6
No files found.
dev/bots/test.dart
View file @
77142b82
...
...
@@ -191,21 +191,22 @@ Future<void> _runBuildTests() async {
await
_flutterBuildApk
(
path
);
await
_flutterBuildIpa
(
path
);
}
await
_flutterBuildDart2js
(
path
.
join
(
'dev'
,
'integration_tests'
,
'web'
));
// TODO(jonahwilliams): re-enable when engine rolls.
//await _flutterBuildDart2js(path.join('dev', 'integration_tests', 'web'));
print
(
'
${bold}
DONE: All build tests successful.
$reset
'
);
}
Future
<
void
>
_flutterBuildDart2js
(
String
relativePathToApplication
)
async
{
print
(
'Running Dart2JS build tests...'
);
await
runCommand
(
flutter
,
<
String
>[
'build'
,
'web'
,
'-v'
],
workingDirectory:
path
.
join
(
flutterRoot
,
relativePathToApplication
),
expectNonZeroExit:
false
,
timeout:
_kShortTimeout
,
);
print
(
'Done.'
);
}
//
Future<void> _flutterBuildDart2js(String relativePathToApplication) async {
//
print('Running Dart2JS build tests...');
//
await runCommand(flutter,
//
<String>['build', 'web', '-v'],
//
workingDirectory: path.join(flutterRoot, relativePathToApplication),
//
expectNonZeroExit: false,
//
timeout: _kShortTimeout,
//
);
//
print('Done.');
//
}
Future
<
void
>
_flutterBuildAot
(
String
relativePathToApplication
)
async
{
print
(
'Running AOT build tests...'
);
...
...
packages/flutter_tools/lib/src/artifacts.dart
View file @
77142b82
...
...
@@ -73,9 +73,9 @@ String _artifactToFileName(Artifact artifact, [ TargetPlatform platform, BuildMo
case
Artifact
.
engineDartBinary
:
return
'dart'
;
case
Artifact
.
dart2jsSnapshot
:
return
'dart2js.dart.snapshot'
;
return
'
flutter_
dart2js.dart.snapshot'
;
case
Artifact
.
kernelWorkerSnapshot
:
return
'kernel_worker.dart.snapshot'
;
return
'
flutter_
kernel_worker.dart.snapshot'
;
}
assert
(
false
,
'Invalid artifact
$artifact
.'
);
return
null
;
...
...
packages/flutter_tools/lib/src/commands/build_web.dart
View file @
77142b82
...
...
@@ -4,11 +4,10 @@
import
'dart:async'
;
import
'../base/common.dart'
;
import
'../base/logger.dart'
;
import
'../build_info.dart'
;
import
'../globals.dart'
;
import
'../runner/flutter_command.dart'
show
FlutterCommandResult
;
import
'../runner/flutter_command.dart'
show
ExitStatus
,
FlutterCommandResult
;
import
'../web/compile.dart'
;
import
'build.dart'
;
...
...
@@ -34,9 +33,6 @@ class BuildWebCommand extends BuildSubCommand {
final
Status
status
=
logger
.
startProgress
(
'Compiling
$target
to JavaScript...'
,
timeout:
null
);
final
int
result
=
await
webCompiler
.
compile
(
target:
target
);
status
.
stop
();
if
(
result
!=
0
)
{
throwToolExit
(
'JavaScript compilation failed.'
);
}
return
null
;
return
FlutterCommandResult
(
result
==
0
?
ExitStatus
.
success
:
ExitStatus
.
fail
);
}
}
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