The Glean Gradle plugin now exposes ext.gleanPythonEnvDir for users to point to an existing Python virtualenv where glean_parser is available. As documented in https://mozilla.github.io/glean/book/language-bindings/android/android-build-configuration-options.html, the Glean Gradle plugin options such as ext.gleanPythonEnvDir must be set before applying the plugin. This enables us to use gradle offline for Android builds (except the android-gradle-dependencies task of course). Differential Revision: https://phabricator.services.mozilla.com/D215795
31 lines
766 B
Bash
Executable File
31 lines
766 B
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
|
|
./gradlew -Pcoverage detekt lint service-nimbus:assembleAndroidTest samples-browser:testGeckoDebugUnitTest tooling-lint:test
|
|
popd
|
|
|
|
. taskcluster/scripts/misc/android-gradle-dependencies/after.sh
|