Commit a9ffc635 authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Android: Disable lint & errorprone for official builds

Static analysis will have already run on non-official bots, so
these checks don't need to be run again on official bots. Both
steps are a bit slow, so they are meaningful to disable.

Change-Id: I8d56c0046f88c0746e1e8129721e49b0325419f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1880157Reviewed-by: default avatarBen Mason <benmason@chromium.org>
Commit-Queue: Ben Mason <benmason@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709518}
parent d89b728a
...@@ -179,8 +179,10 @@ if (is_android || is_chromeos) { ...@@ -179,8 +179,10 @@ if (is_android || is_chromeos) {
# Mark APKs as android:debuggable="true". # Mark APKs as android:debuggable="true".
debuggable_apks = !is_official_build debuggable_apks = !is_official_build
# Set to false to disable the Errorprone compiler # Set to false to disable the Errorprone compiler.
use_errorprone_java_compiler = true # Defaults to false for official builds to reduce build times.
# Static analysis failures should have been already caught by normal bots.
use_errorprone_java_compiler = !is_official_build
# Build incremental targets whenever possible. # Build incremental targets whenever possible.
# See //build/android/incremental_install/README.md for more details. # See //build/android/incremental_install/README.md for more details.
...@@ -191,7 +193,9 @@ if (is_android || is_chromeos) { ...@@ -191,7 +193,9 @@ if (is_android || is_chromeos) {
update_android_aar_prebuilts = false update_android_aar_prebuilts = false
# Turns off android lint. Useful for prototyping or for faster local builds. # Turns off android lint. Useful for prototyping or for faster local builds.
disable_android_lint = false # Defaults to true for official builds to reduce build times.
# Static analysis failures should have been already caught by normal bots.
disable_android_lint = is_official_build
# Location of aapt2 used for app bundles. For now, a more recent version # Location of aapt2 used for app bundles. For now, a more recent version
# than the one distributed with the Android SDK is required. # than the one distributed with the Android SDK is required.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment