tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mozlint-android.yml (7696B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 ---
      5 
      6 task-defaults:
      7    always-target: true
      8    attributes:
      9        build_platform: android
     10        build_type: opt
     11        code-review: true
     12    description: Android lints
     13    platform: lint/opt
     14    treeherder:
     15        kind: test
     16        tier: 1
     17    worker-type: t-linux-docker-amd
     18    worker:
     19        docker-image: {in-tree: android-build}
     20        env:
     21            GRADLE_USER_HOME: /builds/worker/checkouts/gecko/mobile/android/gradle/dotgradle-offline
     22            MOZCONFIG: mobile/android/config/mozconfigs/android-arm/nightly-android-lints
     23            MOZ_OBJDIR: obj-firefox
     24            PERFHERDER_EXTRA_OPTIONS: android-lints
     25            TINDERBOX_OUTPUT: '1'
     26        max-run-time: 3600
     27        artifacts:
     28            - type: file
     29              name: public/code-review/mozlint.json
     30              path: /builds/worker/mozlint.json
     31            - name: public/android/geckoview/api.txt
     32              path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/intermediates/javac/debug/api.txt
     33              type: file
     34            - name: public/android/geckoview/api.txt.map
     35              path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/intermediates/javac/debug/api.txt.map
     36              type: file
     37            - name: public/android/geckoview/apilint-result.json
     38              path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/intermediates/javac/debug/apilint-result.json
     39              type: file
     40            - name: public/android/geckoview/javadoc-results.json
     41              path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/reports/javadoc-results-debug.json
     42              type: file
     43            - name: public/geckoview/unittest
     44              path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/reports/tests
     45              type: directory
     46            - name: public/android/lint/lint-results-debug.xml
     47              path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/reports/lint-results-debug.xml
     48              type: file
     49            - name: public/android/checkstyle/checkstyle.html
     50              path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/reports/checkstyle/debug.html
     51              type: file
     52            - name: public/android/checkstyle/checkstyle.xml
     53              path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/mobile/android/geckoview/reports/checkstyle/debug.xml
     54              type: file
     55            - name: public/reports
     56              path: /builds/worker/checkouts/gecko/obj-firefox/gradle/build/reports
     57              type: directory
     58    run-on-repo-type: [hg]
     59    run:
     60        using: run-task
     61        tooltool-downloads: internal  # For internal toolchains.
     62    fetches:
     63        toolchain:
     64            # Aliases aren't allowed for toolchains installed by fetch.
     65            - linux64-android-gradle-dependencies
     66            - linux64-android-sdk-linux-repack
     67            - linux64-embedded-uniffi-bindgen
     68            - linux64-nimbus-fml
     69            - linux64-jdk-repack
     70            - linux64-node
     71 
     72 
     73 lints:
     74    treeherder:
     75        symbol: A(lints)
     76    run:
     77        command: >
     78            ln -s $MOZ_FETCHES_DIR/android-gradle-dependencies $GECKO_PATH &&
     79            ln -s $MOZ_FETCHES_DIR/android-sdk-linux $GECKO_PATH &&
     80            ln -s $MOZ_FETCHES_DIR/node $GECKO_PATH &&
     81            cd $GECKO_PATH &&
     82            ./mach --log-no-times build pre-export export &&
     83            ./mach --log-no-times lint -f treeherder -f json:/builds/worker/mozlint.json
     84            --linter android-api-lint
     85            --linter android-format
     86            --linter android-javadoc
     87            --linter android-checkstyle
     88            --linter android-lint
     89            --linter android-test
     90            *
     91    when:
     92        files-changed:
     93            # Source files.
     94            - 'mobile/android/**/*.java'
     95            - 'mobile/android/**/*.kt'
     96            # Resources.
     97            - 'mobile/android/**/*.jpeg'
     98            - 'mobile/android/**/*.jpg'
     99            - 'mobile/android/**/*.png'
    100            - 'mobile/android/**/*.svg'
    101            - 'mobile/android/**/*.xml'
    102            # Build stuff.
    103            - 'mobile/android/**/Makefile.in'
    104            - 'mobile/android/config/**'
    105            - 'mobile/android/gradle.configure'
    106            - 'mobile/android/**/moz.build'
    107            - '**/*.gradle'
    108            # Other misc lint related files.
    109            - 'python/mozlint/**'
    110            - 'tools/lint/**'
    111 
    112 fenix:
    113    treeherder:
    114        symbol: A(fenix-lints)
    115    run:
    116        command: >
    117            ln -s $MOZ_FETCHES_DIR/android-gradle-dependencies $GECKO_PATH &&
    118            ln -s $MOZ_FETCHES_DIR/android-sdk-linux $GECKO_PATH &&
    119            ln -s $MOZ_FETCHES_DIR/node $GECKO_PATH &&
    120            cd $GECKO_PATH &&
    121            ./mach --log-no-times build pre-export export &&
    122            ./mach --log-no-times lint -f treeherder -f json:/builds/worker/mozlint.json
    123            --linter android-fenix
    124            *
    125    when:
    126        files-changed:
    127            # Source files.
    128            - 'mobile/android/fenix/**'
    129            # Build stuff.
    130            - 'mobile/android/**/Makefile.in'
    131            - 'mobile/android/config/**'
    132            - 'mobile/android/gradle.configure'
    133            - 'mobile/android/**/moz.build'
    134            - '**/*.gradle'
    135            # Other misc lint related files.
    136            - 'python/mozlint/**'
    137            - 'tools/lint/**'
    138 
    139 focus:
    140    treeherder:
    141        symbol: A(focus-lints)
    142    run:
    143        command: >
    144            ln -s $MOZ_FETCHES_DIR/android-gradle-dependencies $GECKO_PATH &&
    145            ln -s $MOZ_FETCHES_DIR/android-sdk-linux $GECKO_PATH &&
    146            ln -s $MOZ_FETCHES_DIR/node $GECKO_PATH &&
    147            cd $GECKO_PATH &&
    148            ./mach --log-no-times build pre-export export &&
    149            ./mach --log-no-times lint -f treeherder -f json:/builds/worker/mozlint.json
    150            --linter android-focus
    151            *
    152    when:
    153        files-changed:
    154            # Source files.
    155            - 'mobile/android/focus-android/**'
    156            # Build stuff.
    157            - 'mobile/android/**/Makefile.in'
    158            - 'mobile/android/config/**'
    159            - 'mobile/android/gradle.configure'
    160            - 'mobile/android/**/moz.build'
    161            - '**/*.gradle'
    162            # Other misc lint related files.
    163            - 'python/mozlint/**'
    164            - 'tools/lint/**'
    165 
    166 android-components:
    167    treeherder:
    168        symbol: A(ac-lints)
    169    run:
    170        command: >
    171            ln -s $MOZ_FETCHES_DIR/android-gradle-dependencies $GECKO_PATH &&
    172            ln -s $MOZ_FETCHES_DIR/android-sdk-linux $GECKO_PATH &&
    173            ln -s $MOZ_FETCHES_DIR/node $GECKO_PATH &&
    174            cd $GECKO_PATH &&
    175            ./mach --log-no-times build pre-export export &&
    176            ./mach --log-no-times lint -f treeherder -f json:/builds/worker/mozlint.json
    177            --linter android-ac
    178            *
    179    when:
    180        files-changed:
    181            # Source files.
    182            - 'mobile/android/android-components/**'
    183            # Build stuff.
    184            - 'mobile/android/**/Makefile.in'
    185            - 'mobile/android/config/**'
    186            - 'mobile/android/gradle.configure'
    187            - 'mobile/android/**/moz.build'
    188            - '**/*.gradle'
    189            # Other misc lint related files.
    190            - 'python/mozlint/**'
    191            - 'tools/lint/**'