tor-browser

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

kind.yml (5904B)


      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 loader: android_taskgraph.loader.build_config:components_loader
      6 
      7 transforms:
      8    - android_taskgraph.transforms.build_components:transforms
      9    - gecko_taskgraph.transforms.build_schedules:transforms
     10    - gecko_taskgraph.transforms.job:transforms
     11    - gecko_taskgraph.transforms.task:transforms
     12 
     13 not-for-components:
     14    - samples-browser   # Their configs are too different, so they're handled in a specific kind
     15 
     16 kind-dependencies:
     17    - toolchain
     18    - build-fat-aar
     19 
     20 task-defaults:
     21    run-on-repo-type: [hg]
     22    artifact-template:
     23        type: file
     24        name: public/build/{artifact_file_name}
     25        path: '/builds/worker/workspace/obj-build/gradle/maven/org/mozilla/components/{component}/{version}/{artifact_file_name}'
     26    tests-artifact-template:
     27        type: directory
     28        name: public/reports/tests
     29        path: '/builds/worker/workspace/obj-build/gradle/build/mobile/android/android-components/{component_path}/reports/tests'
     30    lint-artifact-template:
     31        type: file
     32        name: public/reports/lint-results-release.html
     33        path: '/builds/worker/workspace/obj-build/gradle/build/mobile/android/android-components/{component_path}/reports/lint-results-release.html'
     34    jacoco-coverage-template:
     35        type: directory
     36        name: public/reports/jacoco
     37        path: '/builds/worker/workspace/obj-build/gradle/build/mobile/android/android-components/{component_path}/reports/jacoco'
     38    description: Execute Gradle tasks for component "{component}"
     39    fetches:
     40        toolchain:
     41            - android-sdk-linux
     42            - linux64-embedded-uniffi-bindgen
     43            - linux64-nimbus-fml
     44            - android-gradle-dependencies
     45            - linux64-jdk
     46        build-fat-aar:
     47            - target.maven.zip
     48    attributes:
     49        build_platform: android
     50    dependencies:
     51        build-fat-aar:
     52            by-build-type:
     53                release|nightly|beta: build-fat-aar-android-geckoview-fat-aar-shippable/opt
     54                default: build-fat-aar-android-geckoview-fat-aar/opt
     55    include-coverage:
     56        by-build-type:
     57            release: false
     58            beta: false
     59            nightly: false
     60            default: true
     61    run:
     62        gradlew:
     63            by-build-type:
     64                release:
     65                    - ':components:{component}:assembleRelease'
     66                    - ':components:{component}:testRelease'
     67                    - ':components:{component}:lintRelease'
     68                    - ':components:{component}:publish'
     69                beta:
     70                    # /!\ Beta builds are considered Release in gradle
     71                    - ':components:{component}:assembleRelease'
     72                    - ':components:{component}:testRelease'
     73                    - ':components:{component}:lintRelease'
     74                    - ':components:{component}:publish'
     75                nightly:
     76                    - '-PnightlyVersion={nightlyVersion}'
     77                    - ':components:{component}:assembleRelease'
     78                    - ':components:{component}:testRelease'
     79                    - ':components:{component}:lintRelease'
     80                    - ':components:{component}:publish'
     81                default:
     82                    by-component:
     83                        # No lintRelease on this task, gradle task isn't defined
     84                        tooling-lint:
     85                            - ':components:{component}:assemble'
     86                            - ':components:{component}:assembleAndroidTest'
     87                            - ':components:{component}:test'
     88                            - ':components:{component}:lint'
     89                        # No testRelease on this task, gradle task isn't defined
     90                        tooling-detekt:
     91                            - ':components:{component}:assemble'
     92                            - ':components:{component}:assembleAndroidTest'
     93                            - ':components:{component}:test'
     94                            - ':components:{component}:lintRelease'
     95                        # No publish on these tasks
     96                        tooling-fetch-tests|samples-.*:
     97                            - ':components:{component}:assemble'
     98                            - ':components:{component}:assembleAndroidTest'
     99                            - ':components:{component}:testRelease'
    100                            - ':components:{component}:lintRelease'
    101                        default:
    102                            - ':components:{component}:assemble'
    103                            - ':components:{component}:assembleAndroidTest'
    104                            - ':components:{component}:testRelease'
    105                            - ':components:{component}:lintRelease'
    106                            - ':components:{component}:publish'
    107        pre-gradlew:
    108            - ["cd", "mobile/android/android-components"]
    109        using: gradlew
    110    run-on-projects:
    111        by-build-type:
    112            release: []
    113            beta: []
    114            nightly: []
    115            default: [all]
    116    shipping-phase:
    117        by-build-type:
    118            (nightly|beta|release): promote
    119            default: null
    120    shipping-product: firefox-android
    121    treeherder:
    122        kind: build
    123        symbol:
    124            by-build-type:
    125                release: '{treeherder_group}(BR)'
    126                beta: '{treeherder_group}(BB)'
    127                nightly: '{treeherder_group}(BN)'
    128                default: '{treeherder_group}(B)'
    129        platform: AC-android-all/opt
    130        tier: 1
    131    worker-type: b-linux-medium
    132    worker:
    133        chain-of-trust: true
    134        docker-image: {in-tree: android-components}
    135        max-run-time: 1200
    136        env:
    137            ANDROID_SDK_ROOT: /builds/worker/fetches/android-sdk-linux