fune/taskcluster/scripts/misc/android-gradle-dependencies.sh
Julien Cristau 8f5d9088cb Bug 1824856 - add firefox-android tasks to a-g-d to cache more required dependencies. r=geckoview-reviewers,nalexander
- add some firefox-android builds/tests, it seems some dependencies are
  conditionally downloaded based on which tasks run, so the
  downloadDependencies task isn't enough
- enable coverage for A-C, as the jacoco plugin is conditionally enabled (and
  thus downloaded) based on that property
- bump max run time to account for the extra work making us go over 30 minutes

Differential Revision: https://phabricator.services.mozilla.com/D201541
2024-01-30 19:22:34 +01:00

34 lines
1 KiB
Bash
Executable file

#!/bin/bash -vex
set -x -e
echo "running as" $(id)
set -v
cd $GECKO_PATH
# Nexus needs Java 8
export PATH=$MOZ_FETCHES_DIR/jdk-8/bin:$PATH
. taskcluster/scripts/misc/android-gradle-dependencies/before.sh
export MOZCONFIG=mobile/android/config/mozconfigs/android-arm-gradle-dependencies/nightly
./mach build
./mach gradle downloadDependencies
./mach android gradle-dependencies
pushd mobile/android/fenix
./gradlew detekt lint assembleDebug mozilla-lint-rules:test
popd
pushd mobile/android/focus-android
./gradlew lint
popd
pushd mobile/android/android-components
# Before building anything we explicitly build one component that contains Glean and initializes
# the Miniconda Python environment and doesn't have (almost) any other transitive dependencies.
# If that happens concurrently with other tasks then this seems to fail quite often.
./gradlew service-nimbus:build
./gradlew -Pcoverage detekt lint service-nimbus:assembleAndroidTest samples-browser:testGeckoDebugUnitTest tooling-lint:test
popd
. taskcluster/scripts/misc/android-gradle-dependencies/after.sh