Merge pull request #7210 from vector-im/feature/adm/emulator-network-access
Missing buildjet Emulator network
This commit is contained in:
commit
df752b9e58
|
@ -8,7 +8,7 @@ on:
|
||||||
# Enrich gradle.properties for CI/CD
|
# Enrich gradle.properties for CI/CD
|
||||||
env:
|
env:
|
||||||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
|
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
|
||||||
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon
|
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 4 --no-daemon
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
@ -33,7 +33,7 @@ jobs:
|
||||||
- uses: gradle/gradle-build-action@v2
|
- uses: gradle/gradle-build-action@v2
|
||||||
|
|
||||||
- name: Run screenshot tests
|
- name: Run screenshot tests
|
||||||
run: ./gradlew verifyScreenshots
|
run: ./gradlew verifyScreenshots $CI_GRADLE_ARG_PROPERTIES
|
||||||
|
|
||||||
- name: Archive Screenshot Results on Error
|
- name: Archive Screenshot Results on Error
|
||||||
if: failure()
|
if: failure()
|
||||||
|
@ -54,27 +54,6 @@ jobs:
|
||||||
disableRateLimiting: true
|
disableRateLimiting: true
|
||||||
public_baseurl: "http://10.0.2.2:8080/"
|
public_baseurl: "http://10.0.2.2:8080/"
|
||||||
|
|
||||||
- name: AVD cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
id: avd-cache
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.android/avd/*
|
|
||||||
~/.android/adb*
|
|
||||||
key: avd-${{ matrix.api-level }}
|
|
||||||
|
|
||||||
- name: create AVD and generate snapshot for caching
|
|
||||||
if: steps.avd-cache.outputs.cache-hit != 'true'
|
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
|
||||||
with:
|
|
||||||
api-level: ${{ matrix.api-level }}
|
|
||||||
arch: x86
|
|
||||||
profile: Nexus 5X
|
|
||||||
force-avd-creation: true # Is set to false in the doc https://github.com/ReactiveCircus/android-emulator-runner
|
|
||||||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
||||||
disable-animations: true
|
|
||||||
script: echo "Generated AVD snapshot for caching."
|
|
||||||
|
|
||||||
- name: Run all the codecoverage tests at once
|
- name: Run all the codecoverage tests at once
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
# continue-on-error: true
|
# continue-on-error: true
|
||||||
|
@ -82,6 +61,7 @@ jobs:
|
||||||
api-level: ${{ matrix.api-level }}
|
api-level: ${{ matrix.api-level }}
|
||||||
arch: x86
|
arch: x86
|
||||||
profile: Nexus 5X
|
profile: Nexus 5X
|
||||||
|
target: playstore
|
||||||
force-avd-creation: false
|
force-avd-creation: false
|
||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
||||||
disable-animations: true
|
disable-animations: true
|
||||||
|
|
|
@ -26,7 +26,6 @@ import androidx.test.filters.LargeTest
|
||||||
import com.adevinta.android.barista.internal.viewaction.SleepViewAction
|
import com.adevinta.android.barista.internal.viewaction.SleepViewAction
|
||||||
import im.vector.app.features.MainActivity
|
import im.vector.app.features.MainActivity
|
||||||
import im.vector.app.ui.robot.ElementRobot
|
import im.vector.app.ui.robot.ElementRobot
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.rules.RuleChain
|
import org.junit.rules.RuleChain
|
||||||
|
@ -35,7 +34,6 @@ import java.util.UUID
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4::class)
|
@RunWith(AndroidJUnit4::class)
|
||||||
@LargeTest
|
@LargeTest
|
||||||
@Ignore("Disabled temporarily so that we can unblock other PRs.")
|
|
||||||
class CantVerifyTest {
|
class CantVerifyTest {
|
||||||
|
|
||||||
@get:Rule
|
@get:Rule
|
||||||
|
|
Loading…
Reference in New Issue