mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-21 05:28:08 +00:00
update gitlab ci
This commit is contained in:
parent
054b4dce5a
commit
6c39afccc9
3 changed files with 11 additions and 4 deletions
|
|
@ -18,6 +18,7 @@ job-android-uitests:
|
|||
|
||||
stage: uitests
|
||||
tags: [ "macos-xcode13" ]
|
||||
allow_failure: true
|
||||
|
||||
dependencies:
|
||||
- job-android
|
||||
|
|
@ -33,22 +34,24 @@ job-android-uitests:
|
|||
- ${ANDROID_HOME}/platform-tools/adb logcat -d > logs/logcats.log
|
||||
|
||||
script:
|
||||
- ./gradlew -Pandroid.testInstrumentationRunnerArguments.class=org.linphone.testsuites.CallTestSuite -PscreportAutoClose=true connectedAndroidTest --continue > logs/build.log
|
||||
- ./gradlew -Pandroid.testInstrumentationRunnerArguments.class=org.linphone.testsuites.CallTestSuite -PscreportAutoClose=true connectedAndroidTest --continue
|
||||
- ${ANDROID_HOME}/platform-tools/adb -s emulator-5554 emu kill
|
||||
- ${ANDROID_HOME}/platform-tools/adb -s emulator-5554 emu kill
|
||||
- ${ANDROID_HOME}/platform-tools/adb kill-server
|
||||
|
||||
after_script:
|
||||
- mv app/build/reports/androidTests/connected/* reports
|
||||
- mv app/build/outputs/apk/debug/linphone-android-debug-*.apk ./apks/debug
|
||||
- mv app/build/outputs/apk/release/linphone-android-release-*.apk ./apks/release
|
||||
- mv app/build/outputs/apk/debug ./apks
|
||||
- mv app/build/outputs/apk/release ./apks
|
||||
- python3 --version
|
||||
- python3 .gitlab-ci-files/html2xml-report.py -p reports
|
||||
|
||||
artifacts:
|
||||
paths:
|
||||
- reports/*
|
||||
- logs/*
|
||||
- apks/*
|
||||
- apks/debug/linphone-android-debug-*.apk
|
||||
- apks/release/linphone-android-release-*.apk
|
||||
when: always
|
||||
reports:
|
||||
junit:
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package org.linphone.call
|
|||
import androidx.test.espresso.Espresso.onView
|
||||
import androidx.test.espresso.matcher.ViewMatchers.withId
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
import androidx.test.filters.LargeTest
|
||||
import androidx.test.rule.GrantPermissionRule
|
||||
import java.util.*
|
||||
import org.junit.After
|
||||
|
|
@ -16,6 +17,7 @@ import org.linphone.methods.UITestsScreenshots.takeScreenshot
|
|||
import org.linphone.utils.AppUtils.Companion.getString
|
||||
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
@LargeTest
|
||||
class IncomingCallPushUITests {
|
||||
|
||||
val methods = CallViewUITestsMethods
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import androidx.test.espresso.assertion.ViewAssertions.doesNotExist
|
|||
import androidx.test.espresso.assertion.ViewAssertions.matches
|
||||
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
import androidx.test.filters.LargeTest
|
||||
import androidx.test.rule.GrantPermissionRule
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
|
|
@ -17,6 +18,7 @@ import org.linphone.methods.UITestsUtils.checkWithTimeout
|
|||
import org.linphone.utils.AppUtils.Companion.getString
|
||||
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
@LargeTest
|
||||
class IncomingCallUITests {
|
||||
|
||||
val methods = CallViewUITestsMethods
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue