summaryrefslogtreecommitdiff
path: root/compilationTests/BUILD.bazel
blob: b0d78273912836519042aee4eb9b7056b4bf929f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
load("//tools/base/bazel:bazel.bzl", "iml_module")

# managed by go/iml_to_build
iml_module(
    name = "studio.compilationTests",
    iml_files = ["db-compilationTests.iml"],
    tags = [
        "no_test_mac",  # b/178123368
        "no_test_windows",  # b/177936851
    ],
    test_class = "androidx.databinding.compilationTest.bazel.DataBindingCompilationTestSuite",
    test_data = [
        "//prebuilts/studio/sdk:build-tools/latest",
        "//prebuilts/studio/sdk:platforms/latest",
        "//prebuilts/tools/common/kotlin-plugin:Kotlin/kotlinc/build.txt",
        "//tools/data-binding:data_binding_runtime.zip",
        "//tools/adt/idea/android:test_deps.zip",
        "//tools/adt/idea/android/testData",
        "//tools/base/build-system:gradle-distrib",
        "//tools/base/build-system:studio_repo",
    ] + glob(["testData/**"]),
    test_shard_count = 4,
    test_srcs = ["src/test/java"],
    test_timeout = "long",
    visibility = ["//visibility:public"],
    # do not sort: must match IML order
    deps = [
        "//prebuilts/studio/intellij-sdk:studio-sdk",
        "//tools/base/annotations:studio.android.sdktools.android-annotations[module, test]",
        "//tools/data-binding:studio.compilerCommon[module, test]",
        "//tools/data-binding:studio.compiler[module, test]",
        "//prebuilts/tools/common/m2/repository/junit/junit/4.12:junit-4.12[test]",
        "//tools/adt/idea/.idea/libraries:truth[test]",
        "//prebuilts/tools/common/m2/repository/org/apache/commons/commons-lang3/3.3.2:commons-lang3-3.3.2[test]",
        "//prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4:commons-io-2.4[test]",
        "//tools/base/testutils:studio.android.sdktools.testutils[module, test]",
        "//tools/adt/idea/android-test-framework:intellij.android.testFramework[module, test]",
        "//tools/adt/idea/adt-testutils:intellij.android.adt.testutils[module, test]",
        "//tools/adt/idea/android:intellij.android.core[module, test]",
        "//tools/analytics-library/shared:analytics-shared[module, test]",
    ],
)