зеркало из https://github.com/mozilla/gecko-dev.git
56 строки
1.6 KiB
YAML
56 строки
1.6 KiB
YAML
# 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:
|
|
# Run only on try and code-review tasks
|
|
# to avoid running infer on the whole codebase
|
|
run-on-projects:
|
|
- try
|
|
|
|
platform: linux64/opt
|
|
attributes:
|
|
code-review: true
|
|
worker-type:
|
|
by-platform:
|
|
linux64.*: t-linux-xlarge
|
|
worker:
|
|
docker-image: {in-tree: android-build}
|
|
max-run-time: 5400
|
|
treeherder:
|
|
kind: other
|
|
tier: 2
|
|
run:
|
|
using: run-task
|
|
tooltool-downloads: public
|
|
fetches:
|
|
toolchain:
|
|
- linux64-infer
|
|
- linux64-android-sdk-linux-repack
|
|
- linux64-android-ndk-linux-repack
|
|
- linux64-rust-android
|
|
- linux64-clang
|
|
- linux64-cbindgen
|
|
- linux64-nasm
|
|
- linux64-node
|
|
when:
|
|
files-changed:
|
|
- 'mobile/**/*.java'
|
|
|
|
infer:
|
|
description: Run static-analysis (infer) on Java patches
|
|
treeherder:
|
|
symbol: java(infer)
|
|
run:
|
|
cwd: '{checkout}'
|
|
command: >-
|
|
source taskcluster/scripts/misc/source-test-infer-setup.sh &&
|
|
./mach --log-no-times configure &&
|
|
./mach --log-no-times static-analysis check-java --outgoing --output $HOME/infer.json
|
|
|
|
worker:
|
|
artifacts:
|
|
- type: file
|
|
name: public/code-review/infer.json
|
|
path: /builds/worker/infer.json
|