mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Turns out, we shipped a new Flutter beta as well. Commenting out `experimental/varfont_shader_puzzle` from beta CI Everything else is just cleanup. ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. <!-- Links --> [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/wiki/Chat [Contributors Guide]: https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
34 lines
868 B
Bash
34 lines
868 B
Bash
function ci_projects () {
|
|
local channel="$1"
|
|
|
|
shift
|
|
local arr=("$@")
|
|
for PROJECT_NAME in "${arr[@]}"
|
|
do
|
|
echo "== Testing '${PROJECT_NAME}' on Flutter's $channel channel =="
|
|
pushd "${PROJECT_NAME}"
|
|
|
|
# Grab packages.
|
|
flutter pub get
|
|
|
|
# Run the analyzer to find any static analysis issues.
|
|
dart analyze --fatal-infos --fatal-warnings
|
|
|
|
# Run the formatter on all the dart files to make sure everything's linted.
|
|
dart format --output none --set-exit-if-changed .
|
|
|
|
# Run the actual tests.
|
|
if [ -d "test" ]
|
|
then
|
|
if grep -q "flutter:" "pubspec.yaml"; then
|
|
flutter test
|
|
else
|
|
# If the project is not a Flutter project, use the Dart CLI.
|
|
dart test
|
|
fi
|
|
fi
|
|
|
|
popd
|
|
done
|
|
}
|