Misc test scripts cleanup:

- Echo commands
- Remove generated code before pod install
- Don’t “clean” before “build”
pull/7425/head
Jorge Canizales 9 years ago
parent f4df3d2d02
commit 545bad349c
  1. 4
      src/objective-c/tests/build_example_test.sh
  2. 4
      src/objective-c/tests/build_one_example.sh
  3. 5
      src/objective-c/tests/build_tests.sh
  4. 2
      src/objective-c/tests/run_tests.sh

@ -31,7 +31,7 @@
# Don't run this script standalone. Instead, run from the repository root:
# ./tools/run_tests/run_tests.py -l objc
set -eo pipefail
set -evo pipefail
cd `dirname $0`
@ -47,6 +47,8 @@ SCHEME=AuthSample \
EXAMPLE_PATH=examples/objective-c/auth_sample \
./build_one_example.sh
rm -f ../examples/RemoteTestClient/*.{h,m}
SCHEME=Sample \
EXAMPLE_PATH=src/objective-c/examples/Sample \
./build_one_example.sh

@ -31,7 +31,7 @@
# Don't run this script standalone. Instead, run from the repository root:
# ./tools/run_tests/run_tests.py -l objc
set -e
set -ev
# Params:
# EXAMPLE_PATH - directory of the example
@ -54,7 +54,7 @@ pod install
set -o pipefail
XCODEBUILD_FILTER='(^===|^\*\*|\bfatal\b|\berror\b|\bwarning\b|\bfail)'
xcodebuild \
clean build \
build \
-workspace *.xcworkspace \
-scheme $SCHEME \
-destination name="iPhone 6" \

@ -44,5 +44,10 @@ hash xcodebuild 2>/dev/null || {
exit 1
}
# clean the directory
rm -rf Pods
rm -rf Tests.xcworkspace
rm -f Podfile.lock
rm -f RemoteTestClient/*.{h,m}
pod install

@ -31,7 +31,7 @@
# Don't run this script standalone. Instead, run from the repository root:
# ./tools/run_tests/run_tests.py -l objc
set -e
set -ev
cd $(dirname $0)

Loading…
Cancel
Save