| --- |
| platforms: |
| centos7: |
| 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" |
| - "//src:bazel_jdk_minimal" |
| test_flags: |
| - "--test_timeout=1200" |
| test_targets: |
| - "--" |
| - "//scripts/..." |
| - "//src/java_tools/..." |
| - "//src/test/..." |
| - "//src/tools/execlog/..." |
| - "//src/tools/singlejar/..." |
| - "//src/tools/workspacelog/..." |
| - "//third_party/ijar/..." |
| - "//tools/android/..." |
| - "//tools/aquery_differ/..." |
| - "//tools/python/..." |
| # 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/8162 |
| - "-//src/java_tools/buildjar/..." |
| - "-//src/java_tools/import_deps_checker/..." |
| # TODO(philwo): Re-enable after #8708 is fixed. |
| - "-//src/test/shell/bazel:bazel_cc_code_coverage_test" |
| - "-//src/test/shell/bazel:bazel_coverage_cc_test_gcc" |
| - "-//src/test/shell/bazel:bazel_coverage_sh_test" |
| 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" |
| - "//src:bazel_jdk_minimal" |
| test_flags: |
| - "--test_timeout=1200" |
| test_targets: |
| - "--" |
| - "//scripts/..." |
| - "//src/java_tools/..." |
| - "//src/test/..." |
| - "//src/tools/execlog/..." |
| - "//src/tools/singlejar/..." |
| - "//src/tools/workspacelog/..." |
| - "//third_party/ijar/..." |
| - "//tools/android/..." |
| - "//tools/aquery_differ/..." |
| - "//tools/python/..." |
| # 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/8162 |
| - "-//src/java_tools/buildjar/..." |
| - "-//src/java_tools/import_deps_checker/..." |
| 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" |
| - "//src:bazel_jdk_minimal" |
| test_flags: |
| - "--test_timeout=1200" |
| test_targets: |
| - "--" |
| - "//scripts/..." |
| - "//src/java_tools/..." |
| - "//src/test/..." |
| - "//src/tools/execlog/..." |
| - "//src/tools/singlejar/..." |
| - "//src/tools/workspacelog/..." |
| - "//third_party/ijar/..." |
| - "//tools/android/..." |
| - "//tools/aquery_differ/..." |
| - "//tools/python/..." |
| # 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" |
| # Some prebuilt jars don't run with Java 11 |
| - "-//src/test/shell/bazel:external_integration_test" |
| - "-//src/test/shell/bazel:maven_test" |
| # Re-enable once bootstrap works with Java 11 |
| - "-//src/test/shell/bazel:bazel_bootstrap_distfile_test" |
| # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/8162 |
| - "-//src/java_tools/import_deps_checker/..." |
| ubuntu1804_clang: |
| platform: ubuntu1804 |
| environment: |
| CC: clang |
| CC_CONFIGURE_DEBUG: 1 |
| name: "Clang" |
| 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" |
| - "//src:bazel_jdk_minimal" |
| test_flags: |
| - "--test_timeout=1200" |
| test_targets: |
| - "--" |
| - "//src/test/shell/bazel:cc_integration_test" |
| ubuntu1804_javabase9: |
| platform: ubuntu1804_nojava |
| name: ":java: OpenJDK 9 Javabase" |
| 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_flags: |
| - "--javabase=@openjdk9_linux_archive//:runtime" |
| build_targets: |
| - "//src:bazel" |
| - "//src:bazel_jdk_minimal" |
| test_flags: |
| - "--javabase=@openjdk9_linux_archive//:runtime" |
| - "--test_timeout=1200" |
| test_targets: |
| - "--" |
| - "//scripts/..." |
| - "//src/java_tools/..." |
| - "//src/test/..." |
| - "//src/tools/execlog/..." |
| - "//src/tools/singlejar/..." |
| - "//src/tools/workspacelog/..." |
| - "//third_party/ijar/..." |
| - "//tools/android/..." |
| - "//tools/aquery_differ/..." |
| - "//tools/python/..." |
| # Disable Slow Tests |
| - "-//src/test/shell/bazel:bazel_determinism_test" |
| # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/8162 |
| - "-//src/java_tools/import_deps_checker/..." |
| # These tests do not work without an installed system JDK: |
| # (see https://github.com/bazelbuild/bazel/issues/6214#issuecomment-424813868) |
| - "-//src/test/java/com/google/devtools/build/android/..." |
| - "-//src/test/py/bazel:launcher_test" |
| - "-//src/test/py/bazel:runfiles_test" |
| - "-//src/test/shell/bazel/android/..." |
| - "-//src/test/shell/bazel:bazel_bootstrap_distfile_test" |
| - "-//src/test/shell/bazel:bazel_coverage_cc_test_gcc" |
| - "-//src/test/shell/bazel:bazel_coverage_cc_test_llvm" |
| - "-//src/test/shell/bazel:bazel_coverage_java_test" |
| - "-//src/test/shell/bazel:bazel_coverage_sh_test" |
| - "-//src/test/shell/bazel:bazel_determinism_test" |
| - "-//src/test/shell/bazel:bazel_example_test" |
| - "-//src/test/shell/bazel:bazel_java_test" |
| - "-//src/test/shell/bazel:bazel_java_test_defaults" |
| - "-//src/test/shell/bazel:bazel_random_characters_test" |
| - "-//src/test/shell/bazel:bazel_repository_cache_test" |
| - "-//src/test/shell/bazel:bazel_rules_test" |
| - "-//src/test/shell/bazel:bazel_sandboxing_test" |
| - "-//src/test/shell/bazel:bazel_test_test" |
| - "-//src/test/shell/bazel:empty_package_test" |
| - "-//src/test/shell/bazel:external_integration_test" |
| - "-//src/test/shell/bazel:java_launcher_test" |
| - "-//src/test/shell/bazel:local_repository_test" |
| - "-//src/test/shell/bazel:maven_test" |
| - "-//src/test/shell/bazel:runfiles_test" |
| - "-//src/test/shell/integration:bazel_java_test" |
| - "-//src/test/shell/integration:bazel_sandboxed_worker_test" |
| - "-//src/test/shell/integration:bazel_worker_test" |
| - "-//src/test/shell/integration:discard_analysis_cache_test" |
| - "-//src/test/shell/integration:java_integration_test" |
| - "-//src/test/shell/integration:jvm_flags_escaping_test" |
| - "-//src/test/shell/integration:minimal_jdk_test" |
| - "-//src/test/shell/integration:output_filter_test" |
| - "-//src/test/shell/integration:stub_finds_runfiles_test" |
| - "-//src/test/shell/integration:test_test" |
| ubuntu1804_javabase10: |
| platform: ubuntu1804_nojava |
| name: ":java: OpenJDK 10 Javabase" |
| 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_flags: |
| - "--javabase=@openjdk10_linux_archive//:runtime" |
| build_targets: |
| - "//src:bazel" |
| - "//src:bazel_jdk_minimal" |
| test_flags: |
| - "--javabase=@openjdk10_linux_archive//:runtime" |
| - "--test_timeout=1200" |
| test_targets: |
| - "--" |
| - "//scripts/..." |
| - "//src/java_tools/..." |
| - "//src/test/..." |
| - "//src/tools/execlog/..." |
| - "//src/tools/singlejar/..." |
| - "//src/tools/workspacelog/..." |
| - "//third_party/ijar/..." |
| - "//tools/android/..." |
| - "//tools/aquery_differ/..." |
| - "//tools/python/..." |
| # Disable Slow Tests |
| - "-//src/test/shell/bazel:bazel_determinism_test" |
| # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/8162 |
| - "-//src/java_tools/import_deps_checker/..." |
| # These tests do not work without an installed system JDK: |
| # (see https://github.com/bazelbuild/bazel/issues/6214#issuecomment-424813868) |
| - "-//src/test/java/com/google/devtools/build/android/..." |
| - "-//src/test/py/bazel:launcher_test" |
| - "-//src/test/py/bazel:runfiles_test" |
| - "-//src/test/shell/bazel/android/..." |
| - "-//src/test/shell/bazel:bazel_bootstrap_distfile_test" |
| - "-//src/test/shell/bazel:bazel_coverage_cc_test_gcc" |
| - "-//src/test/shell/bazel:bazel_coverage_cc_test_llvm" |
| - "-//src/test/shell/bazel:bazel_coverage_java_test" |
| - "-//src/test/shell/bazel:bazel_coverage_sh_test" |
| - "-//src/test/shell/bazel:bazel_determinism_test" |
| - "-//src/test/shell/bazel:bazel_example_test" |
| - "-//src/test/shell/bazel:bazel_java_test" |
| - "-//src/test/shell/bazel:bazel_java_test_defaults" |
| - "-//src/test/shell/bazel:bazel_random_characters_test" |
| - "-//src/test/shell/bazel:bazel_repository_cache_test" |
| - "-//src/test/shell/bazel:bazel_rules_test" |
| - "-//src/test/shell/bazel:bazel_sandboxing_test" |
| - "-//src/test/shell/bazel:bazel_test_test" |
| - "-//src/test/shell/bazel:empty_package_test" |
| - "-//src/test/shell/bazel:external_integration_test" |
| - "-//src/test/shell/bazel:java_launcher_test" |
| - "-//src/test/shell/bazel:local_repository_test" |
| - "-//src/test/shell/bazel:maven_test" |
| - "-//src/test/shell/bazel:runfiles_test" |
| - "-//src/test/shell/integration:bazel_java_test" |
| - "-//src/test/shell/integration:bazel_sandboxed_worker_test" |
| - "-//src/test/shell/integration:bazel_worker_test" |
| - "-//src/test/shell/integration:discard_analysis_cache_test" |
| - "-//src/test/shell/integration:java_integration_test" |
| - "-//src/test/shell/integration:jvm_flags_escaping_test" |
| - "-//src/test/shell/integration:minimal_jdk_test" |
| - "-//src/test/shell/integration:output_filter_test" |
| - "-//src/test/shell/integration:stub_finds_runfiles_test" |
| - "-//src/test/shell/integration:test_test" |
| 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_flags: |
| - "--apple_platform_type=macos" |
| # Remove when https://github.com/bazelbuild/bazel/issues/7026 is fixed. |
| - "--noincompatible_strict_action_env" |
| build_targets: |
| - "//src:bazel" |
| - "//src:bazel_jdk_minimal" |
| test_flags: |
| - "--test_timeout=1200" |
| # Remove when https://github.com/bazelbuild/bazel/issues/7026 is fixed. |
| - "--noincompatible_strict_action_env" |
| test_targets: |
| - "--" |
| - "//scripts/..." |
| - "//src/test/..." |
| - "//src/tools/execlog/..." |
| - "//src/tools/singlejar/..." |
| - "//src/tools/workspacelog/..." |
| - "//third_party/ijar/..." |
| - "//tools/android/..." |
| - "//tools/aquery_differ/..." |
| - "//tools/osx/crosstool/..." |
| - "//tools/python/..." |
| # C++ coverage is not supported on macOS yet. |
| - "-//src/test/shell/bazel:bazel_cc_code_coverage_test" |
| # 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_java_test_jdk9_toolchain_released" |
| - "-//src/test/shell/bazel:bazel_java_test_jdk9_toolchain_head" |
| - "-//src/test/shell/bazel:bazel_java_test_jdk10_toolchain_head" |
| - "-//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" |
| - "-//src/test/shell/integration:minimal_jdk_test" |
| windows: |
| batch_commands: |
| - powershell -Command "(Get-Content WORKSPACE) -Replace '# android_', 'android_' | Set-Content WORKSPACE" |
| build_flags: |
| - "--copt=-w" |
| - "--host_copt=-w" |
| # Remove when https://github.com/bazelbuild/bazel/issues/7026 is fixed. |
| - "--noincompatible_strict_action_env" |
| build_targets: |
| - "//src:bazel" |
| - "//src:bazel_jdk_minimal" |
| test_flags: |
| - "--copt=-w" |
| - "--host_copt=-w" |
| - "--test_env=JAVA_HOME" |
| - "--test_timeout=1200" |
| # Remove when https://github.com/bazelbuild/bazel/issues/7026 is fixed. |
| - "--noincompatible_strict_action_env" |
| test_targets: |
| - "--" |
| - "//src:all_windows_tests" |
| rbe_ubuntu1604: |
| shell_commands: |
| - sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' |
| -e 's/^# android_ndk_repository/android_ndk_repository/' |
| -e 's/^# rbe_autoconfig/rbe_autoconfig/' |
| -e 's/^# load("@bazel_toolchains/load("@bazel_toolchains/' WORKSPACE |
| - rm -f WORKSPACE.bak |
| build_targets: |
| - "//src:bazel" |
| - "//src:bazel_jdk_minimal" |