Skip to content

Commit

Permalink
debug test quickstart with no xcpretty
Browse files Browse the repository at this point in the history
  • Loading branch information
maksymmalyhin committed Oct 7, 2020
1 parent 2203880 commit 1fa21ed
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions scripts/test_quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


0 comments on commit 1fa21ed

Please sign in to comment.