mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Try to improve 'Tests' CI job times (#865)
* Try to improve 'Tests' CI job times * Remove `-Pci-build=true` for jobs where the debug mode can be explicitly used * Add some more excluded `*State` values for kover * Run paparazzi verification at the same time as Kover tasks, otherwise the coverage is lost.
This commit is contained in:
committed by
GitHub
parent
a6b3da3cd7
commit
978c7c2aa4
+12
-1
@@ -135,6 +135,15 @@ allprojects {
|
||||
allprojects {
|
||||
tasks.withType<Test> {
|
||||
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)
|
||||
|
||||
val isScreenshotTest = project.gradle.startParameter.taskNames.any { it.contains("paparazzi", ignoreCase = true) }
|
||||
if (isScreenshotTest) {
|
||||
// Increase heap size for screenshot tests
|
||||
maxHeapSize = "1g"
|
||||
} else {
|
||||
// Disable screenshot tests by default
|
||||
exclude("**/ScreenshotTest*")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,9 +254,11 @@ koverMerged {
|
||||
excludes += "io.element.android.libraries.push.impl.notifications.NotificationState*"
|
||||
excludes += "io.element.android.features.messages.impl.media.local.pdf.PdfViewerState"
|
||||
excludes += "io.element.android.features.messages.impl.media.local.LocalMediaViewState"
|
||||
excludes += "io.element.android.features.location.impl.map.MapState"
|
||||
excludes += "io.element.android.features.location.impl.map.MapState*"
|
||||
excludes += "io.element.android.libraries.matrix.api.timeline.item.event.LocalEventSendState*"
|
||||
excludes += "io.element.android.libraries.designsystem.swipe.SwipeableActionsState*"
|
||||
excludes += "io.element.android.features.messages.impl.timeline.components.ExpandableState*"
|
||||
excludes += "io.element.android.features.messages.impl.timeline.model.bubble.BubbleState*"
|
||||
}
|
||||
bound {
|
||||
minValue = 90
|
||||
|
||||
Reference in New Issue
Block a user