Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-goral committed Sep 4, 2020
1 parent c1c3696 commit f8642fa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 28 deletions.
25 changes: 9 additions & 16 deletions test_projects/android/ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ function base_app_apk() {
local dir=$(dirname "$BASH_SOURCE")
local outputDir="$FLANK_FIXTURES_TMP/apk"

for arg in "$@"; do
case "$arg" in
for arg in "$@"; do case "$arg" in

'--generate' | '-g')
"$dir/gradlew" -p "$dir" app:assemble
Expand All @@ -19,16 +18,14 @@ function base_app_apk() {
cp "$apkIn" "$apkOut"
;;

esac
done
esac done
}

# depends on base_app_apk
function base_test_apks() {
local dir=$(dirname "$BASH_SOURCE")

for arg in "$@"; do
case "$arg" in
for arg in "$@"; do case "$arg" in

'--generate' | '-g')
"$dir/gradlew" -p "$dir" app:assembleAndroidTest
Expand All @@ -42,16 +39,14 @@ function base_test_apks() {
cp $testIn $outputDir/
;;

esac
done
esac done
}

# depends on base_app_apk
function duplicated_names_apks() {
local dir=$(dirname "$BASH_SOURCE")

for arg in "$@"; do
case "$arg" in
for arg in "$@"; do case "$arg" in

'--generate' | '-g')
"$dir/gradlew" -p "$dir" \
Expand All @@ -76,16 +71,15 @@ function duplicated_names_apks() {
cp "$dir/$moduleName"/testModule/build/outputs/apk/**/debug/*.apk "$apkDir"
done
;;
esac
done

esac done
}

function multi_module_apks() {
local dir=$(dirname "$BASH_SOURCE")
local outputDir="$FLANK_FIXTURES_TMP/apk/multi-modules/"

for arg in "$@"; do
case "$arg" in
for arg in "$@"; do case "$arg" in

'--generate' | '-g')
"$dir/gradlew" -p "$dir" \
Expand Down Expand Up @@ -117,8 +111,7 @@ function multi_module_apks() {
find "$dir/multi-modules" -type f -name "*.apk" -exec cp {} "$outputDir" \;
;;

esac
done
esac done
}

echo "Android test projects ops loaded"
12 changes: 4 additions & 8 deletions test_projects/ios/EarlGreyExample/ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ function setup_ios_env() {

function earl_grey_example() {
local dir=$(dirname "$BASH_SOURCE")
for arg in "$@"; do
case "$arg" in
for arg in "$@"; do case "$arg" in

'--generate' | '-g')
"$dir/build_example.sh"
Expand All @@ -19,14 +18,12 @@ function earl_grey_example() {
echo "TODO"
;;

esac
done
esac done
}

function earl_grey_ftl() {
local dir=$(dirname "$BASH_SOURCE")
for arg in "$@"; do
case "$arg" in
for arg in "$@"; do case "$arg" in

'--generate' | '-g')
"$dir/build_ftl.sh"
Expand All @@ -36,8 +33,7 @@ function earl_grey_ftl() {
echo "--copy TODO"
;;

esac
done
esac done
}

function universal_framework() {
Expand Down
7 changes: 3 additions & 4 deletions test_projects/ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ dir="$(dirname "$BASH_SOURCE")"

function update_test_artifacts() {

for arg in "$@"; do
case "$arg" in
for arg in "$@"; do case "$arg" in

android)
base_app_apk --generate --copy
Expand All @@ -27,6 +26,6 @@ function update_test_artifacts() {
all)
update_test_artifacts android ios go
;;
esac
done

esac done
}

0 comments on commit f8642fa

Please sign in to comment.