Skip to content

Commit

Permalink
CBL-4688: Jenkins PR Validation (EE) should run on both iOS and macOS (
Browse files Browse the repository at this point in the history
…#3179)

* build macos also
  • Loading branch information
velicuvlad authored Aug 2, 2023
1 parent 9067413 commit e4f7161
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Scripts/pull_request_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ if [ "$1" = "-enterprise" ]
cd couchbase-lite-ios
fi

SCHEMES_MACOS=("CBL_EE_ObjC" "CBL_EE_Swift")

for SCHEMES_MACOS in "${SCHEMES_MACOS[@]}"
do
xcodebuild build -project CouchbaseLite.xcodeproj -scheme "$SCHEMES_MACOS" -destination "platform=macOS"
done

TEST_SIMULATOR=$(xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | sed 's/Simulator//g' | awk '{$1=$1;print}')
SCHEMES=("CBL_EE_ObjC_Tests_iOS_App" "CBL_EE_Swift_Tests_iOS_App")
SCHEMES_IOS=("CBL_EE_ObjC_Tests_iOS_App" "CBL_EE_Swift_Tests_iOS_App")

for SCHEME in "${SCHEMES[@]}"
for SCHEMES_IOS in "${SCHEMES_IOS[@]}"
do
xcodebuild test -project CouchbaseLite.xcodeproj -scheme "$SCHEME" -sdk iphonesimulator -destination "platform=iOS Simulator,name=${TEST_SIMULATOR}"
xcodebuild test -project CouchbaseLite.xcodeproj -scheme "$SCHEMES_IOS" -sdk iphonesimulator -destination "platform=iOS Simulator,name=${TEST_SIMULATOR}"
done

0 comments on commit e4f7161

Please sign in to comment.