1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

[Gallery] Add Travis CI check that l10n command has been run for the gallery (#263)

* Add command to grind to verify that l10n command has ben run
This commit is contained in:
Per Classon
2020-01-28 11:48:06 +01:00
committed by GitHub
parent 4d6d5660bc
commit e7f39b1c37
12 changed files with 68 additions and 99 deletions

View File

@@ -59,10 +59,14 @@ do
done
# Test that the code segment widgets that get displayed in the Flutter Material
# gallery have been generated using the latest gallery code.
echo "Run code segments check for 'gallery/gallery'."
# gallery have been generated using the latest gallery code. Also test that
# the localization scripts have been run, so that they are up to date for the
# gallery.
pushd gallery/gallery
echo "Run code segments check for 'gallery/gallery'."
"${LOCAL_SDK_PATH}/bin/flutter" pub run grinder verify-code-segments
echo "Run localization check for 'gallery/gallery'."
"${LOCAL_SDK_PATH}/bin/flutter" pub run grinder verify-l10n
popd
echo "-- Success --"