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
90c66f5d
Unverified
Commit
90c66f5d
authored
Feb 23, 2021
by
Jenn Magder
Committed by
GitHub
Feb 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn on desktop and web integration tests for beta and stable (#76433)
parent
47ac4ce5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
38 deletions
+16
-38
test.dart
dev/bots/test.dart
+16
-38
No files found.
dev/bots/test.dart
View file @
90c66f5d
...
...
@@ -120,27 +120,6 @@ Future<void> main(List<String> args) async {
print
(
'
$clock
${bold}
Test successful.
$reset
'
);
}
/// Returns whether or not Linux desktop tests should be run.
///
/// The branch restrictions here should stay in sync with features.dart.
bool
_shouldRunLinux
(
)
{
return
Platform
.
isLinux
&&
(
branchName
!=
'beta'
&&
branchName
!=
'stable'
);
}
/// Returns whether or not macOS desktop tests should be run.
///
/// The branch restrictions here should stay in sync with features.dart.
bool
_shouldRunMacOS
(
)
{
return
Platform
.
isMacOS
&&
(
branchName
!=
'beta'
&&
branchName
!=
'stable'
);
}
/// Returns whether or not Windows desktop tests should be run.
///
/// The branch restrictions here should stay in sync with features.dart.
bool
_shouldRunWindows
(
)
{
return
Platform
.
isWindows
&&
(
branchName
!=
'beta'
&&
branchName
!=
'stable'
);
}
/// Verify the Flutter Engine is the revision in
/// bin/cache/internal/engine.version.
Future
<
void
>
_validateEngineHash
()
async
{
...
...
@@ -358,20 +337,19 @@ Future<void> _runBuildTests() async {
// distribution of costs, but the seed is fixed so that issues are reproducible.
final
List
<
ShardRunner
>
tests
=
<
ShardRunner
>[
for
(
final
FileSystemEntity
exampleDirectory
in
exampleDirectories
)
()
=>
_runExampleProjectBuildTests
(
exampleDirectory
),
if
(
branchName
!=
'beta'
&&
branchName
!=
'stable'
)
...<
ShardRunner
>[
// Web compilation tests.
()
=>
_flutterBuildDart2js
(
path
.
join
(
'dev'
,
'integration_tests'
,
'web'
),
path
.
join
(
'lib'
,
'main.dart'
),
),
// Should not fail to compile with dart:io.
()
=>
_flutterBuildDart2js
(
path
.
join
(
'dev'
,
'integration_tests'
,
'web_compile_tests'
),
path
.
join
(
'lib'
,
'dart_io_import.dart'
),
),
],
()
=>
_runExampleProjectBuildTests
(
exampleDirectory
),
...<
ShardRunner
>[
// Web compilation tests.
()
=>
_flutterBuildDart2js
(
path
.
join
(
'dev'
,
'integration_tests'
,
'web'
),
path
.
join
(
'lib'
,
'main.dart'
),
),
// Should not fail to compile with dart:io.
()
=>
_flutterBuildDart2js
(
path
.
join
(
'dev'
,
'integration_tests'
,
'web_compile_tests'
),
path
.
join
(
'lib'
,
'dart_io_import.dart'
),
),
],
]..
shuffle
(
math
.
Random
(
0
));
await
_runShardRunnerIndexOfTotalSubshard
(
tests
);
...
...
@@ -402,7 +380,7 @@ Future<void> _runExampleProjectBuildTests(FileSystemEntity exampleDirectory) asy
print
(
'Example project
${path.basename(examplePath)}
has no ios directory, skipping ipa'
);
}
}
if
(
_shouldRunLinux
()
)
{
if
(
Platform
.
isLinux
)
{
if
(
Directory
(
path
.
join
(
examplePath
,
'linux'
)).
existsSync
())
{
await
_flutterBuildLinux
(
examplePath
,
release:
false
,
additionalArgs:
additionalArgs
,
verifyCaching:
verifyCaching
);
await
_flutterBuildLinux
(
examplePath
,
release:
true
,
additionalArgs:
additionalArgs
,
verifyCaching:
verifyCaching
);
...
...
@@ -410,7 +388,7 @@ Future<void> _runExampleProjectBuildTests(FileSystemEntity exampleDirectory) asy
print
(
'Example project
${path.basename(examplePath)}
has no linux directory, skipping Linux'
);
}
}
if
(
_shouldRunMacOS
()
)
{
if
(
Platform
.
isMacOS
)
{
if
(
Directory
(
path
.
join
(
examplePath
,
'macos'
)).
existsSync
())
{
await
_flutterBuildMacOS
(
examplePath
,
release:
false
,
additionalArgs:
additionalArgs
,
verifyCaching:
verifyCaching
);
await
_flutterBuildMacOS
(
examplePath
,
release:
true
,
additionalArgs:
additionalArgs
,
verifyCaching:
verifyCaching
);
...
...
@@ -418,7 +396,7 @@ Future<void> _runExampleProjectBuildTests(FileSystemEntity exampleDirectory) asy
print
(
'Example project
${path.basename(examplePath)}
has no macos directory, skipping macOS'
);
}
}
if
(
_shouldRunWindows
()
)
{
if
(
Platform
.
isWindows
)
{
if
(
Directory
(
path
.
join
(
examplePath
,
'windows'
)).
existsSync
())
{
await
_flutterBuildWin32
(
examplePath
,
release:
false
,
additionalArgs:
additionalArgs
,
verifyCaching:
verifyCaching
);
await
_flutterBuildWin32
(
examplePath
,
release:
true
,
additionalArgs:
additionalArgs
,
verifyCaching:
verifyCaching
);
...
...
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