Skip to content

Commit

Permalink
try:ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AyaMahmoud148 committed Nov 20, 2024
1 parent 76eecc8 commit 2b2ab42
Showing 1 changed file with 1 addition and 52 deletions.
53 changes: 1 addition & 52 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ references:
- test_ios
- e2e_ios
- e2e_android
- appium_e2e_ios
- appium_e2e_android

dream11_prepare_config: &dream11_prepare_config
Expand Down Expand Up @@ -656,6 +655,7 @@ jobs:
replace: $SNAPSHOT_VERSION
- notify_github:
data: "$(jq -Rcs '{ body: . }' scripts/snapshot-comment.md)"

appium_e2e_android:
parameters:
working_directory:
Expand Down Expand Up @@ -689,50 +689,6 @@ jobs:
E2E_DEVICE: 'android'
no_output_timeout: 30m

appium_e2e_ios:
parameters:
working_directory:
type: string
scheme:
type: string
workspace_path:
type: string
macos:
xcode: 13.4.1
resource_class: macos.m1.medium.gen1
steps:
- advanced-checkout/shallow-checkout
- build_and_pack_sdk:
working_directory: << parameters.working_directory >>
- install_pods:
working_directory: <<parameters.working_directory>>/ios
- setup_mitm_proxy
- setup_ios_proxy
- setup_appium
- run:
name: Build iOS
working_directory: <<parameters.working_directory>>/ios
command: |
yarn react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ios/main.jsbundle --assets-dest ios
rm -rf ~/Library/Developer/Xcode/DerivedData/*
xcodebuild -workspace <<parameters.workspace_path>>.xcworkspace \
-scheme <<parameters.scheme>> \
-configuration Release \
-sdk iphonesimulator \
-destination "platform=iOS Simulator,OS=15.5,name=iPhone 11 Pro Max"
- run:
name: Start MITM Proxy with logging
command: |
mitmdump -s << parameters.working_directory >>/utils/proxy-server.py -p 8080 &
sleep 5
background: true
- run:
working_directory: << parameters.working_directory >>
command: |
node --experimental-vm-modules node_modules/jest/bin/jest.js --config=jest.config.js
environment:
E2E_DEVICE: 'ios'
no_output_timeout: 30m

workflows:
publish:
Expand Down Expand Up @@ -859,16 +815,9 @@ workflows:
working_directory: ~/project/examples/hybrid
requires:
- hold_appium_e2e
- appium_e2e_ios:
working_directory: ~/project/examples/hybrid
scheme: HybridSampleApp
workspace_path: HybridSampleApp
requires:
- hold_appium_e2e
- release_custom_package:
name: release_dream11
requires:
- appium_e2e_ios
- appium_e2e_android
- hold_release_dream11
filters:
Expand Down

0 comments on commit 2b2ab42

Please sign in to comment.