aboutsummaryrefslogtreecommitdiffhomepage
path: root/.bazelci/presubmit.yml
blob: d1bc3f1c14ca38f910684ef3a6f43b6707138f74 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
platforms:
  ubuntu1404:
    shell_commands:
    - sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
      android_ndk_repository/android_ndk_repository/' WORKSPACE
    - rm -f WORKSPACE.bak
    build_targets:
    - "//src:bazel"
    test_flags:
    - "--test_timeout=1200"
    test_targets:
    - "--"
    - "//scripts/..."
    - "//src/test/..."
    - "//third_party/ijar/..."
    - "//tools/android/..."
    # Disable Slow Tests
    - "-//src/test/shell/bazel:bazel_determinism_test"
    # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4663
    - "-//src/test/shell/bazel/android:android_ndk_integration_test"
    # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/5888
    - "-//src/test/java/com/google/devtools/build/android/ziputils:ziputils-tests"
  ubuntu1604:
    shell_commands:
    - sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
      android_ndk_repository/android_ndk_repository/' WORKSPACE
    - rm -f WORKSPACE.bak
    build_targets:
    - "//src:bazel"
    test_flags:
    - "--test_timeout=1200"
    test_targets:
    - "--"
    - "//scripts/..."
    - "//src/test/..."
    - "//third_party/ijar/..."
    - "//tools/android/..."
    # Disable Slow Tests
    - "-//src/test/shell/bazel:bazel_determinism_test"
    # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4663
    - "-//src/test/shell/bazel/android:android_ndk_integration_test"
    # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/5888
    - "-//src/test/java/com/google/devtools/build/android/ziputils:ziputils-tests"
  ubuntu1804:
    shell_commands:
    - sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
      android_ndk_repository/android_ndk_repository/' WORKSPACE
    - rm -f WORKSPACE.bak
    build_targets:
    - "//src:bazel"
    test_flags:
    - "--test_timeout=1200"
    test_targets:
    - "--"
    - "//scripts/..."
    - "//src/test/..."
    - "//third_party/ijar/..."
    - "//tools/android/..."
    # Disable Slow Tests
    - "-//src/test/shell/bazel:bazel_determinism_test"
    # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4663
    - "-//src/test/shell/bazel/android:android_ndk_integration_test"
    # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/5888
    - "-//src/test/java/com/google/devtools/build/android/ziputils:ziputils-tests"
  macos:
    shell_commands:
    - sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
      android_ndk_repository/android_ndk_repository/' WORKSPACE
    - rm -f WORKSPACE.bak
    build_targets:
    - "//src:bazel"
    test_flags:
    - "--test_timeout=1200"
    test_targets:
    - "--"
    - "//scripts/..."
    - "//src/test/..."
    - "//third_party/ijar/..."
    - "//tools/android/..."
    # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4663
    - "-//src/test/shell/bazel/android:android_ndk_integration_test"
    # The below tests have been disabled because they are too slow on macOS.
    # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4684
    - "-//src/test/shell/bazel:bazel_determinism_test"
    - "-//src/test/shell/bazel:bazel_java_test"
    - "-//src/test/shell/bazel:bazel_bootstrap_distfile_test"
    - "-//src/test/shell/bazel/remote:remote_execution_test"
    - "-//src/test/shell/bazel/remote:remote_execution_http_test"
    - "-//src/test/shell/bazel:skylark_git_repository_test"
    - "-//src/test/shell/bazel:external_path_test"
    - "-//src/test/py/bazel:runfiles_test"
    - "-//src/test/shell/bazel:git_repository_test"
    - "-//src/test/shell/bazel/android:aar_integration_test"
    - "-//src/test/shell/bazel/android:android_integration_test"
    # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/5888
    - "-//src/test/java/com/google/devtools/build/android/ziputils:ziputils-tests"
  windows:
    build_flags:
    - "--copt=-w"
    - "--host_copt=-w"
    build_targets:
    - "//src:bazel"
    test_flags:
    - "--copt=-w"
    - "--host_copt=-w"
    - "--test_env=TEMP"
    - "--test_env=JAVA_HOME"
    - "--test_timeout=1200"
    test_targets:
    - "--"
    - "//src:all_windows_tests"
    # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/5888
    - "-//src/test/java/com/google/devtools/build/android/ziputils:ziputils-tests"
  rbe_ubuntu1604:
    shell_commands:
    - sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
      android_ndk_repository/android_ndk_repository/' WORKSPACE
    - rm -f WORKSPACE.bak
    build_targets:
    - "//src:bazel"