2727 - run :
2828 name : Node Version
2929 command : |
30- nvm install v20 .2.0 && nvm alias default 20 .2.0
30+ nvm install v22 .2.0 && nvm alias default 22 .2.0
3131 - run :
3232 name : Install Appium and Run iOS Test
3333 command : |
@@ -39,16 +39,18 @@ jobs:
3939 echo 'export APP_PATH=$CIRCLE_WORKING_DIRECTORY/ios.zip' >> $BASH_ENV
4040 echo $pwd
4141 echo ls
42- nvm install v20 .2.0 && nvm alias default 20 .2.0
42+ nvm install v22 .2.0 && nvm alias default 22 .2.0
4343 node -v
4444 target_sim_id=$(xcrun simctl list devices available | grep "iPhone 14" | cut -d "(" -f2 | cut -d ")" -f1 | head -n 1)
4545 echo $target_sim_id
4646 echo 'export UDID=$target_sim_id' >> $BASH_ENV
4747 xcrun simctl boot $target_sim_id
4848 xcrun simctl bootstatus $target_sim_id -b
494950- npm ci
50+ npm run build-flutter-by-service
51+ npm install --no-package-lock
5152 npm run build
53+ appium driver list
5254 appium driver run xcuitest build-wda
5355 wda=$(ls -d /Users/distiller/Library/Developer/Xcode/DerivedData/WebDriverAgent*)
5456 echo $wda
@@ -58,65 +60,65 @@ jobs:
5860 xcrun simctl install $target_sim_id $wda/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app
5961 xcrun simctl launch $target_sim_id "com.facebook.WebDriverAgentRunner.xctrunner"
6062 mkdir appium-logs
61- git clone https://github.com/AppiumTestDistribution/flutter-finder.git
62- UDID=$target_sim_id APP_PATH=$ios_app npm run wdio-ios-ci
63+ UDID=$target_sim_id APP_PATH=$ios_app npm run wdio-ios
6364
6465 - store_artifacts :
6566 path : appium-logs
66- JAVA_IOS :
67- # Specify the execution environment.
68- # See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job
69- # Add steps to the job
70- # See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
71- macos :
72- # Specify the Xcode version you desire here
73- # See: https://circleci.com/docs/using-macos/
74- xcode : 15.2.0
75- steps :
76- # Checkout the code as the first step.
77- - checkout
78- - run : xcrun simctl list devices available
79- - run :
80- name : Node Version
81- command : |
82- nvm install v20.2.0 && nvm alias default 20.2.0
83- - run :
84- name : Install Appium and Run iOS Test
85- command : |
86- release_info=$(curl -s https://api.github.com/repos/AppiumTestDistribution/appium-flutter-server/releases/latest)
87- asset_urls=$(echo "$release_info" | grep "browser_download_url" | cut -d '"' -f 4)
88- ios_app=$(echo "$asset_urls" | tail -n 1)
89- echo "$ios_app"
90- curl -LO $ios_app
91- echo 'export APP_PATH=$CIRCLE_WORKING_DIRECTORY/ios.zip' >> $BASH_ENV
92- echo $APP_PATH
93- nvm install v20.2.0 && nvm alias default 20.2.0
94- node -v
95- target_sim_id=$(xcrun simctl list devices available | grep "iPhone 14" | cut -d "(" -f2 | cut -d ")" -f1 | head -n 1)
96- echo $target_sim_id
97- echo 'export UDID=$target_sim_id' >> $BASH_ENV
98- xcrun simctl boot $target_sim_id
99- xcrun simctl bootstatus $target_sim_id -b
100- 101- npm ci
102- npm run build
103- appium driver run xcuitest build-wda
104- wda=$(ls -d /Users/distiller/Library/Developer/Xcode/DerivedData/WebDriverAgent*)
105- echo $wda
106- echo 'export WDA_PATH=$wda' >> $BASH_ENV
107- echo ${WDA_PATH}
108- echo ${PROJECT_ENV_VAR}
109- xcrun simctl install $target_sim_id $wda/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app
110- xcrun simctl launch $target_sim_id "com.facebook.WebDriverAgentRunner.xctrunner"
111- mkdir appium-logs
112- git clone https://github.com/AppiumTestDistribution/flutter-finder.git
113- cd flutter-finder/flutter-by/java
114- UDID=$target_sim_id APP_PATH=$ios_app Platform=ios ./gradlew clean test --debug
67+ # JAVA_IOS:
68+ # # Specify the execution environment.
69+ # # See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job
70+ # # Add steps to the job
71+ # # See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
72+ # macos:
73+ # # Specify the Xcode version you desire here
74+ # # See: https://circleci.com/docs/using-macos/
75+ # xcode: 15.2.0
76+ # steps:
77+ # # Checkout the code as the first step.
78+ # - checkout
79+ # - run: xcrun simctl list devices available
80+ # - run:
81+ # name: Node Version
82+ # command: |
83+ # nvm install v22.2.0 && nvm alias default 22.2.0
84+ # - run:
85+ # name: Install Appium and Run iOS Test
86+ # command: |
87+ # release_info=$(curl -s https://api.github.com/repos/AppiumTestDistribution/appium-flutter-server/releases/latest)
88+ # asset_urls=$(echo "$release_info" | grep "browser_download_url" | cut -d '"' -f 4)
89+ # ios_app=$(echo "$asset_urls" | tail -n 1)
90+ # echo "$ios_app"
91+ # curl -LO $ios_app
92+ # echo 'export APP_PATH=$CIRCLE_WORKING_DIRECTORY/ios.zip' >> $BASH_ENV
93+ # echo $APP_PATH
94+ # nvm install v22.2.0 && nvm alias default 22.2.0
95+ # node -v
96+ # target_sim_id=$(xcrun simctl list devices available | grep "iPhone 14" | cut -d "(" -f2 | cut -d ")" -f1 | head -n 1)
97+ # echo $target_sim_id
98+ # echo 'export UDID=$target_sim_id' >> $BASH_ENV
99+ # xcrun simctl boot $target_sim_id
100+ # xcrun simctl bootstatus $target_sim_id -b
101+ # npm install -g [email protected] 102+ # npm install --no-package-lock
103+ # npm run build
104+ # appium driver list
105+ # appium driver run xcuitest build-wda
106+ # wda=$(ls -d /Users/distiller/Library/Developer/Xcode/DerivedData/WebDriverAgent*)
107+ # echo $wda
108+ # echo 'export WDA_PATH=$wda' >> $BASH_ENV
109+ # echo ${WDA_PATH}
110+ # echo ${PROJECT_ENV_VAR}
111+ # xcrun simctl install $target_sim_id $wda/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app
112+ # xcrun simctl launch $target_sim_id "com.facebook.WebDriverAgentRunner.xctrunner"
113+ # mkdir appium-logs
114+ # git clone https://github.com/AppiumTestDistribution/flutter-finder.git
115+ # cd flutter-finder/flutter-by/java
116+ # UDID=$target_sim_id APP_PATH=$ios_app Platform=ios ./gradlew clean test --debug
115117
116- - store_artifacts :
117- path : flutter-finder/flutter-by/java/appium.log
118- # Orchestrate jobs using workflows
119- # See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
118+ # - store_artifacts:
119+ # path: flutter-finder/flutter-by/java/appium.log
120+ # # Orchestrate jobs using workflows
121+ # # See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
120122workflows :
121123 ios : # This is the name of the workflow, feel free to change it to better match your workflow.
122124 # Inside the workflow, you define the jobs you want to run.
@@ -126,8 +128,8 @@ workflows:
126128 branches :
127129 ignore :
128130 - main
129- - JAVA_IOS :
130- filters :
131- branches :
132- ignore :
133- - main
131+ # - JAVA_IOS:
132+ # filters:
133+ # branches:
134+ # ignore:
135+ # - main
0 commit comments