mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: add iOS integration test CI (#4822)
This commit is contained in:
@ -1,13 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
no_pub_get=false
|
||||
|
||||
while getopts 's' flag; do
|
||||
case "${flag}" in
|
||||
s) no_pub_get=true ;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo "Generating flowy icon files"
|
||||
|
||||
# Store the current working directory
|
||||
|
@ -1,13 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
no_pub_get=false
|
||||
|
||||
while getopts 's' flag; do
|
||||
case "${flag}" in
|
||||
s) no_pub_get=true ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Store the current working directory
|
||||
original_dir=$(pwd)
|
||||
|
||||
@ -19,9 +11,7 @@ cd ../../../appflowy_flutter
|
||||
# Navigate to the appflowy_flutter directory and generate files
|
||||
echo "Generating files for appflowy_flutter"
|
||||
|
||||
if [ "$no_pub_get" = false ]; then
|
||||
flutter packages pub get >/dev/null 2>&1
|
||||
fi
|
||||
flutter packages pub get >/dev/null 2>&1
|
||||
|
||||
dart run build_runner build -d
|
||||
echo "Done generating files for appflowy_flutter"
|
||||
@ -36,9 +26,7 @@ for d in */; do
|
||||
if [ -f "pubspec.yaml" ]; then
|
||||
echo "Generating freezed files in $d..."
|
||||
echo "Please wait while we clean the project and fetch the dependencies."
|
||||
if [ "$no_pub_get" = false ]; then
|
||||
flutter packages pub get >/dev/null 2>&1
|
||||
fi
|
||||
flutter packages pub get >/dev/null 2>&1
|
||||
dart run build_runner build -d
|
||||
echo "Done running build command in $d"
|
||||
else
|
||||
|
@ -1,13 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
no_pub_get=false
|
||||
|
||||
while getopts 's' flag; do
|
||||
case "${flag}" in
|
||||
s) no_pub_get=true ;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo "Generating language files"
|
||||
|
||||
# Store the current working directory
|
||||
@ -24,6 +16,9 @@ rm -rf assets/translations/
|
||||
mkdir -p assets/translations/
|
||||
cp -f ../resources/translations/*.json assets/translations/
|
||||
|
||||
# the ci alwayas return a 'null check operator used on a null value' error.
|
||||
# so we force to exec the below command to avoid the error.
|
||||
# https://github.com/dart-lang/pub/issues/3314
|
||||
flutter pub get
|
||||
flutter packages pub get
|
||||
|
||||
|
Reference in New Issue
Block a user