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 # clean the directory
rm -rf Pods rm -rf Pods
rm -rf $SCHEME.xcworkspace rm -rf *.xcworkspace
rm -f Podfile.lock rm -f Podfile.lock
pod install pod install
set -o pipefail set -o pipefail
XCODEBUILD_FILTER='(^CompileC |^Ld |^.*clang |^ *cd |^ *export |^Libtool |^.*libtool |^CpHeader |^ *builtin-copy )' 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 \ build \
-workspace *.xcworkspace \ -workspace *.xcworkspace \
-scheme $SCHEME \ -scheme $SCHEME \
@ -48,3 +60,5 @@ xcodebuild \
CODE_SIGNING_REQUIRED=NO \ CODE_SIGNING_REQUIRED=NO \
| egrep -v "$XCODEBUILD_FILTER" \ | egrep -v "$XCODEBUILD_FILTER" \
| egrep -v "^$" - | egrep -v "^$" -
fi

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

Loading…
Cancel
Save