From 1fa21ed62a5c2e3366a1ba1d30fd2a4addea8eb8 Mon Sep 17 00:00:00 2001 From: Maksym Malyhin Date: Wed, 7 Oct 2020 12:03:48 -0400 Subject: [PATCH] debug test quickstart with no xcpretty --- scripts/test_quickstart.sh | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/scripts/test_quickstart.sh b/scripts/test_quickstart.sh index 29dbc1a1ecd..f4c19195f89 100755 --- a/scripts/test_quickstart.sh +++ b/scripts/test_quickstart.sh @@ -22,14 +22,36 @@ sample="$1" platform="${2-}" # Source function to check if CI secrets are available. -source scripts/check_secrets.sh +source scripts/check_secrets.sh if check_secrets; then cd quickstart-ios if [ "$platform" = "swift" ]; then - have_secrets=true SAMPLE="$sample" SWIFT_SUFFIX="Swift" ./scripts/test.sh + have_secrets=true SAMPLE="$sample" SWIFT_SUFFIX="Swift" #./scripts/test.sh + + (xcodebuild \ + -workspace ${SAMPLE}/${SAMPLE}Example.xcworkspace \ + -scheme ${SAMPLE}Example${SWIFT_SUFFIX} \ + -sdk iphonesimulator \ + -destination 'platform=iOS Simulator,name=iPhone 11' \ + build \ + test \ + ONLY_ACTIVE_ARCH=YES \ + ) else - have_secrets=true SAMPLE="$sample" ./scripts/test.sh + have_secrets=true SAMPLE="$sample" #./scripts/test.sh + + (xcodebuild \ + -workspace ${SAMPLE}/${SAMPLE}Example.xcworkspace \ + -scheme ${SAMPLE}Example${SWIFT_SUFFIX} \ + -sdk iphonesimulator \ + -destination 'platform=iOS Simulator,name=iPhone 11' \ + build \ + test \ + ONLY_ACTIVE_ARCH=YES \ + ) fi fi + +