summaryrefslogtreecommitdiffstats
path: root/taskcluster/kinds/source-test/ktlint.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /taskcluster/kinds/source-test/ktlint.yml
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'taskcluster/kinds/source-test/ktlint.yml')
-rw-r--r--taskcluster/kinds/source-test/ktlint.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/taskcluster/kinds/source-test/ktlint.yml b/taskcluster/kinds/source-test/ktlint.yml
new file mode 100644
index 0000000000..1828887dc0
--- /dev/null
+++ b/taskcluster/kinds/source-test/ktlint.yml
@@ -0,0 +1,56 @@
+# 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 ktlint over all modules'
+ run:
+ using: gradlew
+ gradlew: ['ktlint']
+ use-caches: false
+ attributes:
+ code-review: true
+ always-target: true
+ fetches:
+ toolchain:
+ - android-sdk-linux
+ - android-gradle-dependencies
+ - linux64-jdk-repack
+ platform: 'lint/opt'
+ treeherder:
+ kind: test
+ tier: 1
+ worker-type: b-linux-gcp
+ worker:
+ docker-image: {in-tree: lint}
+ max-run-time: 1200
+ when:
+ files-changed:
+ - "mobile/android/android-components/**"
+
+android-components:
+ run:
+ pre-gradlew:
+ - ["cd", "mobile/android/android-components"]
+ treeherder:
+ symbol: ktlint(AC)
+
+focus:
+ when:
+ files-changed:
+ - "mobile/android/focus-android/**"
+ run:
+ pre-gradlew:
+ - ["cd", "mobile/android/focus-android"]
+ treeherder:
+ symbol: ktlint(focus)
+
+fenix:
+ when:
+ files-changed:
+ - "mobile/android/fenix/**"
+ run:
+ pre-gradlew:
+ - ["cd", "mobile/android/fenix"]
+ treeherder:
+ symbol: ktlint(fenix)