linphone-android/.gitlab-ci.yml
2023-04-03 16:02:12 +02:00

56 lines
1.7 KiB
YAML

#################################################
# Base configuration
#################################################
#################################################
# Platforms to test
#################################################
include:
- '.gitlab-ci-files/job-android.yml'
- '.gitlab-ci-files/job-uitests.yml'
- '.gitlab-ci-files/job-upload.yml'
stages:
- build
- uitests
- deploy
variables:
PATH: /Users/quentin/Library/Android/sdk/emulator/:/Users/quentin/Library/Android/sdk/cmdline-tools/latest/bin/
android_api: "33" #android 13
emulator_type: apis #atd for api < 30 more efficient
system_architecture: arm64-v8a #x86_64 or x86 for Intels
android_system_image: system-images;android-$android_api;google_$emulator_type;$system_architecture
emulator_device: pixel_7
emulator_name: $emulator_device-api_$android_api-google_$emulator_type-arch_$system_architecture
job-android-uitests:
stage: uitests
tags: [ "android" ]
dependencies:
- job-android
before_script:
- echo $PATH
- ${PATH}sdkmanager --install $android_system_image > emulatorSystemImageInstallation.log
- echo no | ${PATH}avdmanager --verbose create avd --force --name $emulator_name --package $android_system_image --tag google_$emulator_type --abi $system_architecture --device emulator_device > emulatorCreation.log
- abd start-server
- ${PATH}emulator -avd $emulator_name &
- wait-for-android-emulator
- adb shell input keyevent 82
script:
- ./gradlew -Pandroid.testInstrumentationRunnerArguments.class=org.linphone.call.OutgoingCallUITests -PscreportAutoClose=true connectedAndroidTest
after_script:
- adb -s emulator-5554 emu kill
- adb kill-server