Skip to content

Commit 2da632f

Browse files
author
Guido Marucci Blas
committed
Updates build scripts.
1 parent 67e75fc commit 2da632f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

script/build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ then
4545
else
4646
source script/.env
4747

48+
if [ -z "$current_schemes" ]
49+
then
50+
echo ""
51+
echo "ERROR: There are no schemes. Probably you forgot to share your schemes"
52+
exit 1
53+
fi
54+
4855
for scheme in $(schemes)
4956
do
5057
build_using_xcodebuild $scheme

script/test

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ run_tests ()
3838
eval $test_command
3939
}
4040

41-
for scheme in $(schemes)
41+
current_schemes=$(schemes)
42+
if [ -z "$current_schemes" ]
43+
then
44+
echo ""
45+
echo "ERROR: There are no schemes. Probably you forgot to share your schemes"
46+
exit 1
47+
fi
48+
49+
for scheme in current_schemes
4250
do
4351
run_tests $scheme
4452
done

0 commit comments

Comments
 (0)