-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Split CI testing based on flutter channels #651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
domesticmouse
merged 28 commits into
flutter:master
from
domesticmouse:stable-beta-dev-ci-split
Jan 27, 2021
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
fa1b48d
Split CI testing based on flutter channels
domesticmouse ebfda63
Drop flutter_maps_firestore from beta and dev
domesticmouse 6796a4d
Drop isolate_example and add_to_app/android_fullscreen
domesticmouse 5321f8b
Drop place_tracker from beta and dev
domesticmouse d1a83f5
Drop platform_channels from beta and dev
domesticmouse 731f224
Drop provider_shopper from beta and dev
domesticmouse 04439f0
Drop testing_app from beta and dev
domesticmouse bc35aae
Add experimental dirs to beta and dev
domesticmouse 611689d
Drop experimental/federated_plugin/federated_plugin
domesticmouse 3ef2486
Fix desktop_photo_search
domesticmouse 7d9b63f
Fix null safe app's badapp
domesticmouse 44b90aa
Give null_unsafe_app a widget test
domesticmouse af4628d
flutter format veggieseasons
domesticmouse f1e344f
Drop experimental/web_dashboard from CI
domesticmouse 46c5868
Use matrix to simplify config
domesticmouse 815d98e
Re-instate fail-fast:false
domesticmouse 17e66c0
Merge branch 'master' of https://github.com/flutter/samples into stab…
domesticmouse 68af20f
Format experimental/veggieseasons
domesticmouse f865c32
Bring back add_to_app/android_fullscreen
domesticmouse 86e1362
Merge branch 'master' of https://github.com/flutter/samples into stab…
domesticmouse 42f4ed3
Bring back experimental/web_dashboard
domesticmouse bf03529
Fix experimental/web_dashboard beta warnings
domesticmouse e213ec4
flutter format experimental/web_dashboard
domesticmouse b9bfa5e
Merge branch 'master' of https://github.com/flutter/samples into stab…
domesticmouse 4cc69af
Add Windows and macOS to the flutter-tests job
domesticmouse 1ec29bb
Merge branch 'master' of https://github.com/flutter/samples into stab…
domesticmouse 56c983d
Merge branch 'master' of https://github.com/flutter/samples into stab…
domesticmouse 2f5f738
Merge branch 'master' into stable-beta-dev-ci-split
domesticmouse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
experimental/null_safety/null_unsafe_app/test/widget_test.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This is a basic Flutter widget test. | ||
// | ||
// To perform an interaction with a widget in your test, use the WidgetTester | ||
// utility that Flutter provides. For example, you can send tap and scroll | ||
// gestures. You can also use WidgetTester to find child widgets in the widget | ||
// tree, read text, and verify that the values of widget properties are correct. | ||
|
||
import 'package:flutter_test/flutter_test.dart'; | ||
|
||
void main() { | ||
testWidgets('Rendering the page throws an exception', | ||
(WidgetTester tester) async { | ||
// Do nothing, running the app throws an exception on widget render. | ||
}); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,3 @@ class _FirebaseUser implements User { | |
|
||
_FirebaseUser(this.uid); | ||
} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
declare -ar PROJECT_NAMES=( | ||
"add_to_app/flutter_module" \ | ||
"add_to_app/flutter_module_using_plugin" \ | ||
"add_to_app/flutter_module_books" \ | ||
"animations" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/652 | ||
# "flutter_maps_firestore" \ | ||
"infinite_list" \ | ||
"ios_app_clip" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/653 | ||
# "isolate_example" \ | ||
"jsonexample" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/655 | ||
# "place_tracker" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/656 | ||
# "platform_channels" \ | ||
"platform_design" | ||
"platform_view_swift" \ | ||
"provider_counter" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/657 | ||
# "provider_shopper" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/658 | ||
# "testing_app" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/659 | ||
# "experimental/federated_plugin/federated_plugin" \ | ||
"experimental/null_safety/null_safe_app" \ | ||
"experimental/null_safety/null_unsafe_app" \ | ||
"experimental/veggieseasons" \ | ||
"experimental/web_dashboard" \ | ||
) | ||
|
||
for PROJECT_NAME in "${PROJECT_NAMES[@]}" | ||
do | ||
echo "== Testing '${PROJECT_NAME}' on Flutter's beta channel ==" | ||
pushd "${PROJECT_NAME}" | ||
|
||
# Grab packages. | ||
flutter pub get | ||
|
||
# Run the analyzer to find any static analysis issues. | ||
flutter analyze | ||
|
||
# Reformat the web plugin registrant, if necessary. | ||
if [ -f "lib/generated_plugin_registrant.dart" ] | ||
then | ||
echo "Renaming $(pwd)/lib/generated_plugin_registrant.dart" | ||
flutter format "lib/generated_plugin_registrant.dart" | ||
fi | ||
|
||
# Run the formatter on all the dart files to make sure everything's linted. | ||
flutter format -n --set-exit-if-changed . | ||
|
||
# Run the actual tests. | ||
flutter test | ||
|
||
popd | ||
done | ||
|
||
echo "-- Success --" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
declare -ar PROJECT_NAMES=( | ||
"add_to_app/flutter_module" \ | ||
"add_to_app/flutter_module_using_plugin" \ | ||
"add_to_app/flutter_module_books" \ | ||
"animations" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/652 | ||
# "flutter_maps_firestore" \ | ||
"infinite_list" \ | ||
"ios_app_clip" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/653 | ||
# "isolate_example" \ | ||
"jsonexample" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/655 | ||
# "place_tracker" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/656 | ||
# "platform_channels" \ | ||
"platform_design" | ||
"platform_view_swift" \ | ||
"provider_counter" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/657 | ||
# "provider_shopper" \ | ||
# Tracking issue: https://github.com/flutter/samples/issues/658 | ||
# "testing_app" \ | ||
"experimental/desktop_photo_search" \ | ||
# https://github.com/flutter/samples/issues/659 | ||
# "experimental/federated_plugin/federated_plugin" \ | ||
"experimental/null_safety/null_safe_app" \ | ||
"experimental/null_safety/null_unsafe_app" \ | ||
"experimental/veggieseasons" \ | ||
"experimental/web_dashboard" \ | ||
) | ||
|
||
for PROJECT_NAME in "${PROJECT_NAMES[@]}" | ||
do | ||
echo "== Testing '${PROJECT_NAME}' on Flutter's dev channel ==" | ||
pushd "${PROJECT_NAME}" | ||
|
||
# Grab packages. | ||
flutter pub get | ||
|
||
# Run the analyzer to find any static analysis issues. | ||
flutter analyze | ||
|
||
# Reformat the web plugin registrant, if necessary. | ||
if [ -f "lib/generated_plugin_registrant.dart" ] | ||
then | ||
echo "Renaming $(pwd)/lib/generated_plugin_registrant.dart" | ||
flutter format "lib/generated_plugin_registrant.dart" | ||
fi | ||
|
||
# Run the formatter on all the dart files to make sure everything's linted. | ||
flutter format -n --set-exit-if-changed . | ||
|
||
# Run the actual tests. | ||
flutter test | ||
|
||
popd | ||
done | ||
|
||
echo "-- Success --" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Is it running zsh on macOS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or PowerShell on Windows? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Powershell on windows by default was the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Holy cow. I was just kidding around. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heh, holy cow is usual state of play for DevOps =)