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 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
|
# 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/.
---
task-defaults:
always-target: true
attributes:
build_platform: android
build_type: opt
code-review: true
description: Android lints
platform: lint/opt
treeherder:
kind: test
tier: 1
worker-type: t-linux-docker-amd
worker:
docker-image: {in-tree: android-build}
env:
GRADLE_USER_HOME: /builds/worker/checkouts/gecko/mobile/android/gradle/dotgradle-offline
MOZCONFIG: mobile/android/config/mozconfigs/android-arm/nightly-android-lints
MOZ_OBJDIR: obj-firefox
PERFHERDER_EXTRA_OPTIONS: android-lints
TINDERBOX_OUTPUT: '1'
max-run-time: 3600
artifacts:
- type: file
name: public/code-review/mozlint.json
path: /builds/worker/mozlint.json
- name: public/android/geckoview/api.txt
path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/intermediates/javac/debug/api.txt
type: file
- name: public/android/geckoview/api.txt.map
path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/intermediates/javac/debug/api.txt.map
type: file
- name: public/android/geckoview/apilint-result.json
path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/intermediates/javac/debug/apilint-result.json
type: file
- name: public/android/geckoview/javadoc-results.json
path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/reports/javadoc-results-debug.json
type: file
- name: public/geckoview/unittest
path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/reports/tests
type: directory
- name: public/android/lint/lint-results-debug.xml
path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/reports/lint-results-debug.xml
type: file
- name: public/android/checkstyle/checkstyle.html
path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/reports/checkstyle/debug.html
type: file
- name: public/android/checkstyle/checkstyle.xml
path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/reports/checkstyle/debug.xml
type: file
- name: public/reports
path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/reports
type: directory
run-on-repo-type: [hg]
run:
using: run-task
tooltool-downloads: internal # For internal toolchains.
fetches:
toolchain:
# Aliases aren't allowed for toolchains installed by fetch.
- linux64-android-gradle-dependencies
- linux64-android-sdk-linux-repack
- linux64-embedded-uniffi-bindgen
- linux64-nimbus-fml
- linux64-jdk-repack
- linux64-node
lints:
treeherder:
symbol: A(lints)
run:
command: >
ln -s $MOZ_FETCHES_DIR/android-gradle-dependencies $GECKO_PATH &&
ln -s $MOZ_FETCHES_DIR/android-sdk-linux $GECKO_PATH &&
ln -s $MOZ_FETCHES_DIR/node $GECKO_PATH &&
cd $GECKO_PATH &&
./mach --log-no-times build pre-export export &&
./mach --log-no-times lint -f treeherder -f json:/builds/worker/mozlint.json
--linter android-api-lint
--linter android-format
--linter android-javadoc
--linter android-checkstyle
--linter android-lint
--linter android-test
*
when:
files-changed:
# Source files.
- 'mobile/android/**/*.java'
- 'mobile/android/**/*.kt'
# Resources.
- 'mobile/android/**/*.jpeg'
- 'mobile/android/**/*.jpg'
- 'mobile/android/**/*.png'
- 'mobile/android/**/*.svg'
- 'mobile/android/**/*.xml'
# Build stuff.
- 'mobile/android/**/Makefile.in'
- 'mobile/android/config/**'
- 'mobile/android/gradle.configure'
- 'mobile/android/**/moz.build'
- '**/*.gradle'
# Other misc lint related files.
- 'python/mozlint/**'
- 'tools/lint/**'
fenix:
treeherder:
symbol: A(fenix-lints)
run:
command: >
ln -s $MOZ_FETCHES_DIR/android-gradle-dependencies $GECKO_PATH &&
ln -s $MOZ_FETCHES_DIR/android-sdk-linux $GECKO_PATH &&
ln -s $MOZ_FETCHES_DIR/node $GECKO_PATH &&
cd $GECKO_PATH &&
./mach --log-no-times build pre-export export &&
./mach --log-no-times lint -f treeherder -f json:/builds/worker/mozlint.json
--linter android-fenix
*
when:
files-changed:
# Source files.
- 'mobile/android/fenix/**'
# Build stuff.
- 'mobile/android/**/Makefile.in'
- 'mobile/android/config/**'
- 'mobile/android/gradle.configure'
- 'mobile/android/**/moz.build'
- '**/*.gradle'
# Other misc lint related files.
- 'python/mozlint/**'
- 'tools/lint/**'
focus:
treeherder:
symbol: A(focus-lints)
run:
command: >
ln -s $MOZ_FETCHES_DIR/android-gradle-dependencies $GECKO_PATH &&
ln -s $MOZ_FETCHES_DIR/android-sdk-linux $GECKO_PATH &&
ln -s $MOZ_FETCHES_DIR/node $GECKO_PATH &&
cd $GECKO_PATH &&
./mach --log-no-times build pre-export export &&
./mach --log-no-times lint -f treeherder -f json:/builds/worker/mozlint.json
--linter android-focus
*
when:
files-changed:
# Source files.
- 'mobile/android/focus-android/**'
# Build stuff.
- 'mobile/android/**/Makefile.in'
- 'mobile/android/config/**'
- 'mobile/android/gradle.configure'
- 'mobile/android/**/moz.build'
- '**/*.gradle'
# Other misc lint related files.
- 'python/mozlint/**'
- 'tools/lint/**'
android-components:
treeherder:
symbol: A(ac-lints)
run:
command: >
ln -s $MOZ_FETCHES_DIR/android-gradle-dependencies $GECKO_PATH &&
ln -s $MOZ_FETCHES_DIR/android-sdk-linux $GECKO_PATH &&
ln -s $MOZ_FETCHES_DIR/node $GECKO_PATH &&
cd $GECKO_PATH &&
./mach --log-no-times build pre-export export &&
./mach --log-no-times lint -f treeherder -f json:/builds/worker/mozlint.json
--linter android-ac
*
when:
files-changed:
# Source files.
- 'mobile/android/android-components/**'
# Build stuff.
- 'mobile/android/**/Makefile.in'
- 'mobile/android/config/**'
- 'mobile/android/gradle.configure'
- 'mobile/android/**/moz.build'
- '**/*.gradle'
# Other misc lint related files.
- 'python/mozlint/**'
- 'tools/lint/**'
|