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
216ff81c
Unverified
Commit
216ff81c
authored
Nov 29, 2017
by
Ian Hickson
Committed by
GitHub
Nov 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix devicelab (#13239)
parent
d104106e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
28 deletions
+47
-28
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+42
-28
manifest.yaml
dev/devicelab/manifest.yaml
+5
-0
No files found.
dev/devicelab/lib/tasks/perf_tests.dart
View file @
216ff81c
...
@@ -208,6 +208,7 @@ class CompileTest {
...
@@ -208,6 +208,7 @@ class CompileTest {
}
}
static
Future
<
Map
<
String
,
dynamic
>>
_compileAot
({
bool
previewDart2:
false
})
async
{
static
Future
<
Map
<
String
,
dynamic
>>
_compileAot
({
bool
previewDart2:
false
})
async
{
// Generate blobs instead of assembly.
await
flutter
(
'clean'
);
await
flutter
(
'clean'
);
final
Stopwatch
watch
=
new
Stopwatch
()..
start
();
final
Stopwatch
watch
=
new
Stopwatch
()..
start
();
final
List
<
String
>
options
=
<
String
>[
final
List
<
String
>
options
=
<
String
>[
...
@@ -215,8 +216,16 @@ class CompileTest {
...
@@ -215,8 +216,16 @@ class CompileTest {
'-v'
,
'-v'
,
'--release'
,
'--release'
,
'--no-pub'
,
'--no-pub'
,
'--target-platform'
,
'android-arm'
,
// Generate blobs instead of assembly.
'--target-platform'
,
];
];
switch
(
deviceOperatingSystem
)
{
case
DeviceOperatingSystem
.
ios
:
options
.
add
(
'ios'
);
break
;
case
DeviceOperatingSystem
.
android
:
options
.
add
(
'android-arm'
);
break
;
}
if
(
previewDart2
)
if
(
previewDart2
)
options
.
add
(
'--preview-dart-2'
);
options
.
add
(
'--preview-dart-2'
);
final
String
compileLog
=
await
evalFlutter
(
'build'
,
options:
options
);
final
String
compileLog
=
await
evalFlutter
(
'build'
,
options:
options
);
...
@@ -240,21 +249,24 @@ class CompileTest {
...
@@ -240,21 +249,24 @@ class CompileTest {
final
List
<
String
>
options
=
<
String
>[
'--release'
];
final
List
<
String
>
options
=
<
String
>[
'--release'
];
if
(
previewDart2
)
if
(
previewDart2
)
options
.
add
(
'--preview-dart-2'
);
options
.
add
(
'--preview-dart-2'
);
if
(
deviceOperatingSystem
==
DeviceOperatingSystem
.
ios
)
{
switch
(
deviceOperatingSystem
)
{
options
.
add
(
'ios'
);
case
DeviceOperatingSystem
.
ios
:
await
prepareProvisioningCertificates
(
cwd
);
options
.
insert
(
0
,
'ios'
);
watch
.
start
();
await
prepareProvisioningCertificates
(
cwd
);
await
flutter
(
'build'
,
options:
options
);
watch
.
start
();
watch
.
stop
();
await
flutter
(
'build'
,
options:
options
);
// IPAs are created manually AFAICT
watch
.
stop
();
await
exec
(
'tar'
,
<
String
>[
'-zcf'
,
'build/app.ipa'
,
'build/ios/Release-iphoneos/Runner.app/'
]);
// IPAs are created manually AFAICT
releaseSizeInBytes
=
await
file
(
'
$cwd
/build/app.ipa'
).
length
();
await
exec
(
'tar'
,
<
String
>[
'-zcf'
,
'build/app.ipa'
,
'build/ios/Release-iphoneos/Runner.app/'
]);
}
else
{
releaseSizeInBytes
=
await
file
(
'
$cwd
/build/app.ipa'
).
length
();
options
.
add
(
'apk'
);
break
;
watch
.
start
();
case
DeviceOperatingSystem
.
android
:
await
flutter
(
'build'
,
options:
options
);
options
.
insert
(
0
,
'apk'
);
watch
.
stop
();
watch
.
start
();
releaseSizeInBytes
=
await
file
(
'
$cwd
/build/app/outputs/apk/app-release.apk'
).
length
();
await
flutter
(
'build'
,
options:
options
);
watch
.
stop
();
releaseSizeInBytes
=
await
file
(
'
$cwd
/build/app/outputs/apk/app-release.apk'
).
length
();
break
;
}
}
return
<
String
,
dynamic
>{
return
<
String
,
dynamic
>{
...
@@ -266,19 +278,21 @@ class CompileTest {
...
@@ -266,19 +278,21 @@ class CompileTest {
static
Future
<
Map
<
String
,
dynamic
>>
_compileDebug
({
bool
previewDart2:
false
})
async
{
static
Future
<
Map
<
String
,
dynamic
>>
_compileDebug
({
bool
previewDart2:
false
})
async
{
await
flutter
(
'clean'
);
await
flutter
(
'clean'
);
final
Stopwatch
watch
=
new
Stopwatch
();
final
Stopwatch
watch
=
new
Stopwatch
();
if
(
deviceOperatingSystem
==
DeviceOperatingSystem
.
ios
)
{
final
List
<
String
>
options
=
<
String
>[
'--debug'
];
await
prepareProvisioningCertificates
(
cwd
);
if
(
previewDart2
)
watch
.
start
();
options
.
add
(
'--preview-dart-2'
);
await
flutter
(
'build'
,
options:
<
String
>[
'ios'
,
'--debug'
]);
switch
(
deviceOperatingSystem
)
{
watch
.
stop
();
case
DeviceOperatingSystem
.
ios
:
}
else
{
options
.
insert
(
0
,
'ios'
);
watch
.
start
();
await
prepareProvisioningCertificates
(
cwd
);
final
List
<
String
>
options
=
<
String
>[
'apk'
,
'--debug'
];
break
;
if
(
previewDart2
)
case
DeviceOperatingSystem
.
android
:
options
.
add
(
'--preview-dart-2'
);
options
.
insert
(
0
,
'apk'
);
await
flutter
(
'build'
,
options:
options
);
break
;
watch
.
stop
();
}
}
watch
.
start
();
await
flutter
(
'build'
,
options:
options
);
watch
.
stop
();
return
<
String
,
dynamic
>{
return
<
String
,
dynamic
>{
'debug_full_compile_millis'
:
watch
.
elapsedMilliseconds
,
'debug_full_compile_millis'
:
watch
.
elapsedMilliseconds
,
...
...
dev/devicelab/manifest.yaml
View file @
216ff81c
...
@@ -56,6 +56,7 @@ tasks:
...
@@ -56,6 +56,7 @@ tasks:
Layout for Android from Windows.
Layout for Android from Windows.
stage
:
devicelab_win
stage
:
devicelab_win
required_agent_capabilities
:
[
"
windows"
]
required_agent_capabilities
:
[
"
windows"
]
flaky
:
true
basic_material_app_android__compile
:
basic_material_app_android__compile
:
description
:
>
description
:
>
...
@@ -79,6 +80,7 @@ tasks:
...
@@ -79,6 +80,7 @@ tasks:
app for Android from Windows.
app for Android from Windows.
stage
:
devicelab_win
stage
:
devicelab_win
required_agent_capabilities
:
[
"
windows"
]
required_agent_capabilities
:
[
"
windows"
]
flaky
:
true
flutter_gallery_android__compile
:
flutter_gallery_android__compile
:
description
:
>
description
:
>
...
@@ -86,6 +88,7 @@ tasks:
...
@@ -86,6 +88,7 @@ tasks:
Gallery for Android from Linux.
Gallery for Android from Linux.
stage
:
devicelab
stage
:
devicelab
required_agent_capabilities
:
[
"
linux/android"
]
required_agent_capabilities
:
[
"
linux/android"
]
flaky
:
true
flutter_gallery_ios__compile
:
flutter_gallery_ios__compile
:
description
:
>
description
:
>
...
@@ -93,6 +96,7 @@ tasks:
...
@@ -93,6 +96,7 @@ tasks:
Gallery for iOS from Mac.
Gallery for iOS from Mac.
stage
:
devicelab_ios
stage
:
devicelab_ios
required_agent_capabilities
:
[
"
has-ios-device"
]
required_agent_capabilities
:
[
"
has-ios-device"
]
flaky
:
true
flutter_gallery_win__compile
:
flutter_gallery_win__compile
:
description
:
>
description
:
>
...
@@ -100,6 +104,7 @@ tasks:
...
@@ -100,6 +104,7 @@ tasks:
Gallery for Android from Windows.
Gallery for Android from Windows.
stage
:
devicelab_win
stage
:
devicelab_win
required_agent_capabilities
:
[
"
windows"
]
required_agent_capabilities
:
[
"
windows"
]
flaky
:
true
# Android on-device tests
# Android on-device tests
...
...
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