summaryrefslogtreecommitdiffstats
path: root/taskcluster/ci/source-test/android-lint.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--taskcluster/ci/source-test/android-lint.yml66
1 files changed, 66 insertions, 0 deletions
diff --git a/taskcluster/ci/source-test/android-lint.yml b/taskcluster/ci/source-test/android-lint.yml
new file mode 100644
index 0000000000..c7eb456021
--- /dev/null
+++ b/taskcluster/ci/source-test/android-lint.yml
@@ -0,0 +1,66 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+---
+job-defaults:
+ description: 'Run lint over all modules'
+ run:
+ using: gradlew
+ gradlew: ['lint']
+ use-caches: false
+ worker:
+ max-run-time: 2700
+ env:
+ JAVA_HOME: "/builds/worker/fetches/jdk/jdk-17.0.6+10"
+ docker-image: {in-tree: lint}
+ always-target: false
+ attributes:
+ code-review: true
+ dependencies:
+ build-fat-aar: build-fat-aar-android-geckoview-fat-aar/opt
+ fetches:
+ toolchain:
+ - android-sdk-linux
+ - android-gradle-dependencies
+ - android-gradle-python-envs
+ - linux64-jdk-repack
+ build-fat-aar:
+ - target.maven.tar.xz
+ platform: 'lint/opt'
+ treeherder:
+ kind: test
+ tier: 1
+ worker-type: b-linux-gcp
+ when:
+ files-changed:
+ - "mobile/android/android-components/**"
+
+
+android-components:
+ run:
+ pre-gradlew:
+ - ["cd", "mobile/android/android-components"]
+ gradlew: ["--no-parallel"]
+ treeherder:
+ symbol: lint(AC)
+
+focus:
+ when:
+ files-changed:
+ - "mobile/android/focus-android/**"
+ run:
+ pre-gradlew:
+ - ["cd", "mobile/android/focus-android"]
+ treeherder:
+ symbol: lint(focus)
+
+fenix:
+ when:
+ files-changed:
+ - "mobile/android/fenix/**"
+ run:
+ pre-gradlew:
+ - ["cd", "mobile/android/fenix"]
+ gradlew: ['lintDebug', 'mozilla-lint-rules:test']
+ treeherder:
+ symbol: lint(fenix)