Browse Source

add compose/scripts to run presubmit workflow for CLs in our androidx fork (#1273)

* add scripts to test compose modules (from androidx fork)

* add scripts to test compose modules (from androidx fork)

* add scripts to test compose modules (from androidx fork)

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
pull/1276/head
Oleksandr Karpovich 3 years ago committed by GitHub
parent
commit
b1f427be54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      compose/build.gradle.kts
  2. 9
      compose/scripts/testComposeModules

23
compose/build.gradle.kts

@ -97,3 +97,26 @@ tasks.register("buildNativeDemo") {
tasks.register("testRuntimeNative") { tasks.register("testRuntimeNative") {
dependsOnComposeTask(":compose:runtime:runtime:macosX64Test") dependsOnComposeTask(":compose:runtime:runtime:macosX64Test")
} }
tasks.register("testComposeModules") { // used in https://github.com/JetBrains/androidx/tree/jb-main/.github/workflows
// TODO: donwload robolectrict to run ui:ui:test
// dependsOnComposeTask(":compose:ui:ui:test")
dependsOnComposeTask(":compose:ui:ui-graphics:test")
dependsOnComposeTask(":compose:ui:ui-geometry:test")
dependsOnComposeTask(":compose:ui:ui-unit:test")
dependsOnComposeTask(":compose:ui:ui-util:test")
dependsOnComposeTask(":compose:runtime:runtime:test")
dependsOnComposeTask(":compose:runtime:runtime-saveable:test")
dependsOnComposeTask(":compose:material:material:test")
dependsOnComposeTask(":compose:material:material-ripple:test")
dependsOnComposeTask(":compose:foundation:foundation:test")
dependsOnComposeTask(":compose:animation:animation:test")
dependsOnComposeTask(":compose:animation:animation-core:test")
dependsOnComposeTask(":compose:animation:animation-core:test")
// TODO: enable ui:ui-text:test
// dependsOnComposeTask(":compose:ui:ui-text:test")
// compose/out/androidx/compose/ui/ui-text/build/intermediates/tmp/manifest/test/debug/tempFile1ProcessTestManifest10207049054096217572.xml Error:
// android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined.
}

9
compose/scripts/testComposeModules

@ -0,0 +1,9 @@
#!/bin/bash
cd "$(dirname "$0")"
. ./prepare
pushd ..
# used in https://github.com/JetBrains/androidx/tree/jb-main/.github/workflows
./gradlew testComposeModules testComposeJbDesktop $COMPOSE_DEFAULT_GRADLE_ARGS "$@" || exit 1
popd
Loading…
Cancel
Save