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