Commit a1ef09ef authored by Peio Rigaux's avatar Peio Rigaux Committed by Sylvain Berfini
Browse files

Setup CI runner for UI tests

1 merge request!1192Added automated UI tests
Showing with 7 additions and 3 deletions
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
variables: variables:
android_api: "33" #android 13 android_api: "33" #android 13
emulator_type: "apis" #atd for api < 30 more efficient emulator_type: "apis" #atd for api < 30 more efficient
system_architecture: "arm64-v8a" #x86_64 or x86 for Intels system_architecture: "x86_64" #x86_64 or x86 for Intels, arm64-v8a for Mac M1
android_system_image: "system-images;android-$android_api;google_$emulator_type;$system_architecture" # 'sdkmanager --list | grep system-images' to have all existing configs android_system_image: "system-images;android-$android_api;google_$emulator_type;$system_architecture" # 'sdkmanager --list | grep system-images' to have all existing configs
emulator_device: "pixel_6" emulator_device: "pixel_6"
emulator_name: "$emulator_device-api_$android_api-google_$emulator_type-arch_$system_architecture" emulator_name: "$emulator_device-api_$android_api-google_$emulator_type-arch_$system_architecture"
...@@ -18,12 +18,16 @@ variables: ...@@ -18,12 +18,16 @@ variables:
job-android-uitests: job-android-uitests:
stage: uitests stage: uitests
tags: [ "macos-xcode13" ] tags: [ "macbookpro-x86" ]
dependencies: dependencies:
- job-android - job-android
before_script: before_script:
- echo $SHELL
- echo $PATH
- python3 --version
- export PATH=$PATH
- git submodule update --init - git submodule update --init
- mkdir logs && mkdir reports && mkdir apks - mkdir logs && mkdir reports && mkdir apks
...@@ -70,7 +74,7 @@ job-android-uitests: ...@@ -70,7 +74,7 @@ job-android-uitests:
- mv app/build/outputs/apk/release/linphone-android-release-*.apk apks/release - mv app/build/outputs/apk/release/linphone-android-release-*.apk apks/release
- mv app/build/reports/androidTests/connected/* reports - mv app/build/reports/androidTests/connected/* reports
- .gitlab-ci-files/html2xml-report -p reports - .gitlab-ci-files/html2xml-report -p reports
artifacts: artifacts:
paths: paths:
- reports/* - reports/*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment