Modified scripts to run builds correct schemes on correct platforms

pull/19787/head
Tony Lu 6 years ago
parent 5be988f412
commit efa43e1bb3
  1. 18
      src/objective-c/tests/build_one_example.sh
  2. 4
      tools/run_tests/run_tests.py

@ -31,14 +31,26 @@ cd $EXAMPLE_PATH
# clean the directory
rm -rf Pods
rm -rf $SCHEME.xcworkspace
rm -rf *.xcworkspace
rm -f Podfile.lock
pod install
set -o pipefail
XCODEBUILD_FILTER='(^CompileC |^Ld |^.*clang |^ *cd |^ *export |^Libtool |^.*libtool |^CpHeader |^ *builtin-copy )'
xcodebuild \
if [ "$SCHEME" == "tvOS-sample" ]; then
xcodebuild \
build \
-workspace *.xcworkspace \
-scheme $SCHEME \
-destination generic/platform=tvOS \
-derivedDataPath Build/Build \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
| egrep -v "$XCODEBUILD_FILTER" \
| egrep -v "^$" -
else
xcodebuild \
build \
-workspace *.xcworkspace \
-scheme $SCHEME \
@ -48,3 +60,5 @@ xcodebuild \
CODE_SIGNING_REQUIRED=NO \
| egrep -v "$XCODEBUILD_FILTER" \
| egrep -v "^$" -
fi

@ -1119,7 +1119,7 @@ class ObjCLanguage(object):
shortname='ios-buildtest-example-watchOS-sample',
cpu_cost=1e6,
environ={
'SCHEME': 'watchOS-sample',
'SCHEME': 'watchOS-sample-WatchKit-App',
'EXAMPLE_PATH': 'src/objective-c/examples/watchOS-sample',
'FRAMEWORKS': 'NO'
}))
@ -1130,7 +1130,7 @@ class ObjCLanguage(object):
shortname='ios-buildtest-example-watchOS-sample-framework',
cpu_cost=1e6,
environ={
'SCHEME': 'watchOS-sample',
'SCHEME': 'watchOS-sample-WatchKit-App',
'EXAMPLE_PATH': 'src/objective-c/examples/watchOS-sample',
'FRAMEWORKS': 'YES'
}))

Loading…
Cancel
Save