Skip to content

Commit

Permalink
feat: update ci settings and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
OlenaPostindustria committed Jun 26, 2024
1 parent 3bc5075 commit 1c0849a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
12 changes: 8 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ version: 2.1
jobs:
build:
macos:
xcode: 14.1.0
xcode: 15.4.0
resource_class: macos.m1.large.gen1
steps:
- checkout
- run:
Expand All @@ -12,7 +13,8 @@ jobs:

unit-test:
macos:
xcode: 14.1.0
xcode: 15.4.0
resource_class: macos.m1.large.gen1
steps:
- checkout
- run:
Expand All @@ -21,7 +23,8 @@ jobs:

run-swift-demo-integration-tests:
macos:
xcode: 14.1.0
xcode: 15.4.0
resource_class: macos.m1.large.gen1
steps:
- checkout
- run:
Expand All @@ -30,7 +33,8 @@ jobs:

run-swift-demo-ui-tests:
macos:
xcode: 14.1.0
xcode: 15.4.0
resource_class: macos.m1.large.gen1
steps:
- checkout
- run:
Expand Down
2 changes: 1 addition & 1 deletion scripts/testPrebidDemo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ else
SCHEME="PrebidDemoTests"
TEST="Integration"
fi
xcodebuild test -workspace PrebidMobile.xcworkspace -scheme $SCHEME -test-iterations 2 -retry-tests-on-failure -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=latest' | xcpretty -f `xcpretty-travis-formatter` --color --test
xcodebuild test -workspace PrebidMobile.xcworkspace -scheme $SCHEME -test-iterations 2 -retry-tests-on-failure -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcpretty -f `xcpretty-travis-formatter` --color --test

if [[ ${PIPESTATUS[0]} == 0 ]]; then
echo "${TEST} Tests Passed"
Expand Down
8 changes: 4 additions & 4 deletions scripts/testPrebidMobile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ echo -e "\n${GREEN}Running PrebidMobile unit tests${NC} \n"
xcodebuild test \
-workspace PrebidMobile.xcworkspace \
-scheme "PrebidMobileTests" \
-destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=latest' | xcpretty --color --test
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcpretty --color --test

if [[ ${PIPESTATUS[0]} == 0 ]]; then
echo "✅ PrebidMobile Unit Tests Passed"
Expand All @@ -67,7 +67,7 @@ echo -e "\n${GREEN}Running PrebidMobileGAMEventHandlers unit tests${NC} \n"
xcodebuild test \
-workspace PrebidMobile.xcworkspace \
-scheme "PrebidMobileGAMEventHandlersTests" \
-destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=latest' | xcpretty --color --test
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcpretty --color --test

if [[ ${PIPESTATUS[0]} == 0 ]]; then
echo "✅ PrebidMobileGAMEventHandlers Unit Tests Passed"
Expand All @@ -77,7 +77,7 @@ else
fi

echo -e "\n${GREEN}Running PrebidMobileAdMobAdapters unit tests${NC} \n"
xcodebuild test -workspace PrebidMobile.xcworkspace -scheme "PrebidMobileAdMobAdaptersTests" -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=latest' | xcpretty -f `xcpretty-travis-formatter` --color --test
xcodebuild test -workspace PrebidMobile.xcworkspace -scheme "PrebidMobileAdMobAdaptersTests" -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcpretty -f `xcpretty-travis-formatter` --color --test

if [[ ${PIPESTATUS[0]} == 0 ]]; then
echo "✅ PrebidMobileAdMobAdapters Unit Tests Passed"
Expand All @@ -87,7 +87,7 @@ else
fi

echo -e "\n${GREEN}Running PrebidMobileMAXAdapters unit tests${NC} \n"
xcodebuild test -workspace PrebidMobile.xcworkspace -scheme "PrebidMobileMAXAdaptersTests" -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=latest' | xcpretty -f `xcpretty-travis-formatter` --color --test
xcodebuild test -workspace PrebidMobile.xcworkspace -scheme "PrebidMobileMAXAdaptersTests" -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' | xcpretty -f `xcpretty-travis-formatter` --color --test

if [[ ${PIPESTATUS[0]} == 0 ]]; then
echo "✅ PrebidMobileMAXAdapters Unit Tests Passed"
Expand Down

0 comments on commit 1c0849a

Please sign in to comment.