Skip to content

Commit 577a75a

Browse files
authored
ci: update for espresso (#280)
* use java 11 * update * remove * cleanup * remove * auto
1 parent 01bf724 commit 577a75a

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

ci-jobs/functional/run_appium.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ steps:
1616
mkdir -p test/report
1717
nohup appium --relaxed-security --log-timestamp --log-no-colors > test/report/appium.out 2>&1 &
1818
displayName: Run Appium in background
19+
env:
20+
JAVA_HOME: $(JAVA_HOME_11_X64)
21+
PATH: $(JAVA_HOME_11_X64)/bin:$(PATH)
1922
- script: |
2023
gem install bundler;
2124
bundle install --retry=3 --jobs=4 --path vendor/bundle;

ci-jobs/functional/start-emulator.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ echo ${ANDROID_HOME}/emulator/emulator -list-avds
1818
echo "Starting emulator"
1919

2020
# Start emulator in background
21-
nohup ${ANDROID_HOME}/emulator/emulator -avd testemulator -accel auto -no-boot-anim -no-snapshot > /dev/null 2>&1 &
21+
nohup ${ANDROID_HOME}/emulator/emulator -avd testemulator -accel auto -no-boot-anim -gpu auto -no-snapshot > /dev/null 2>&1 &
2222
${ANDROID_HOME}/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
2323

2424
${ANDROID_HOME}/platform-tools/adb devices

ci-jobs/functional_test.yml

-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ parameters:
55
xcodeForIOS: 11.5
66
xcodeForTVOS: 11.5
77
androidSDK: 30
8-
androidBuildToolsVersion: '28.0.3'
98
appiumVersion: 'beta'
109
ignoreVersionSkip: true
1110
CI: true
@@ -155,7 +154,6 @@ jobs:
155154
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
156155
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
157156
APPIUM_VERSION: ${{ parameters.appiumVersion }}
158-
ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
159157
strategy:
160158
matrix:
161159
uiautomator2:
@@ -177,7 +175,6 @@ jobs:
177175
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
178176
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
179177
APPIUM_VERSION: ${{ parameters.appiumVersion }}
180-
ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
181178
strategy:
182179
matrix:
183180
uiautomator2:
@@ -199,7 +196,6 @@ jobs:
199196
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
200197
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
201198
APPIUM_VERSION: ${{ parameters.appiumVersion }}
202-
ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
203199
strategy:
204200
matrix:
205201
uiautomator2:
@@ -221,7 +217,6 @@ jobs:
221217
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
222218
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
223219
APPIUM_VERSION: ${{ parameters.appiumVersion }}
224-
ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
225220
strategy:
226221
matrix:
227222
uiautomator2:
@@ -243,7 +238,6 @@ jobs:
243238
ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
244239
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
245240
APPIUM_VERSION: ${{ parameters.appiumVersion }}
246-
ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
247241
strategy:
248242
matrix:
249243
uiautomator2:
@@ -266,7 +260,6 @@ jobs:
266260
AUTOMATION_NAME_DROID: espresso
267261
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
268262
APPIUM_VERSION: ${{ parameters.appiumVersion }}
269-
ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
270263
strategy:
271264
matrix:
272265
uiautomator2:
@@ -289,7 +282,6 @@ jobs:
289282
# ANDROID_SDK_VERSION: ${{ parameters.androidSDK }}
290283
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
291284
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
292-
# ANDROID_BUILD_TOOLS_VERSION: ${{ parameters.androidBuildToolsVersion }}
293285
# strategy:
294286
# matrix:
295287
# uiautomator2:

test/test_helper.rb

-2
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@ def android(activity_name = nil)
270270
}
271271
}
272272

273-
cap[:desired_capabilities][:buildToolsVersion] = ENV['ANDROID_BUILD_TOOLS_VERSION'] if ENV['ANDROID_BUILD_TOOLS_VERSION']
274-
275273
# settins in caps should work over Appium 1.13.0
276274
if cap[:desired_capabilities][:automationName] == 'uiautomator2' && AppiumLibCoreTest.appium_version == 'beta'
277275
cap[:desired_capabilities]['settings[trackScrollEvents]'] = false

0 commit comments

Comments
 (0)