forked from mirrors/gecko-dev
This is simply diagnostic; it's nice to see what the versions of the Android packages installed are, like: Installed packages: Path | Version | Description | Location ------- | ------- | ------- | ------- <snip> platforms;android-23 | 3 | Android SDK Platform 23 | platforms/android-23/ tools | 26.0.1 | Android SDK Tools 26.0.1 | tools/ This is really useful because it's not possible to pin most packages to specific versions; that is, we can only install latest "tools", not "tools;26.0.1". MozReview-Commit-ID: HgZLGCAObEs --HG-- extra : rebase_source : 33e5c9f81d05551c9e167eac62009f1de023b410
22 lines
709 B
Bash
Executable file
22 lines
709 B
Bash
Executable file
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
# This script is for fetching and repacking the Android SDK (for
|
|
# Linux), the tools required to produce Android packages.
|
|
|
|
WORKSPACE=$HOME/workspace
|
|
UPLOAD_DIR=$HOME/project/gecko/android-sdk
|
|
|
|
mkdir -p $HOME/artifacts $UPLOAD_DIR
|
|
|
|
# Populate /builds/worker/.mozbuild/android-sdk-linux.
|
|
cd /builds/worker/workspace/build/src
|
|
./mach python python/mozboot/mozboot/android.py --artifact-mode --no-interactive
|
|
|
|
# It's nice to have the build logs include the state of the world upon
|
|
# completion.
|
|
/builds/worker/.mozbuild/android-sdk-linux/tools/bin/sdkmanager --list
|
|
|
|
tar cf - -C /builds/worker/.mozbuild android-sdk-linux | xz > $UPLOAD_DIR/android-sdk-linux.tar.xz
|
|
|
|
ls -al $UPLOAD_DIR
|