mirror of
https://github.com/kylemanna/docker-aosp
synced 2025-06-07 07:56:25 +00:00
marshmallow: Test on marshmallow android-6.0.1_r72
* Works as expected.
This commit is contained in:
parent
b0aba84e4f
commit
fe5e5d753f
@ -77,3 +77,5 @@ Tested
|
|||||||
------
|
------
|
||||||
|
|
||||||
* Android Kitkat `android-4.4.4_r2.0.1`
|
* Android Kitkat `android-4.4.4_r2.0.1`
|
||||||
|
* Android Lollipop `android-5.0.2_r1`
|
||||||
|
* Android Marshmallow `android-6.0.1_r72`
|
||||||
|
55
tests/build-marshmallow.sh
Executable file
55
tests/build-marshmallow.sh
Executable file
@ -0,0 +1,55 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Test script file that maps itself into a docker container and runs
|
||||||
|
#
|
||||||
|
# Example invocation:
|
||||||
|
#
|
||||||
|
# $ AOSP_VOL=$PWD/build ./build-marshmallow.sh
|
||||||
|
#
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
if [ "$1" = "docker" ]; then
|
||||||
|
TEST_BRANCH=${TEST_BRANCH:-android-6.0.1_r72}
|
||||||
|
TEST_URL=${TEST_URL:-https://android.googlesource.com/platform/manifest}
|
||||||
|
|
||||||
|
cpus=$(grep ^processor /proc/cpuinfo | wc -l)
|
||||||
|
|
||||||
|
repo init --depth 1 -u "$TEST_URL" -b "$TEST_BRANCH"
|
||||||
|
|
||||||
|
# Use default sync '-j' value embedded in manifest file to be polite
|
||||||
|
repo sync
|
||||||
|
|
||||||
|
prebuilts/misc/linux-x86/ccache/ccache -M 10G
|
||||||
|
|
||||||
|
source build/envsetup.sh
|
||||||
|
lunch aosp_arm-eng
|
||||||
|
make -j $cpus
|
||||||
|
else
|
||||||
|
aosp_url="https://raw.githubusercontent.com/kylemanna/docker-aosp/master/utils/aosp"
|
||||||
|
args="bash run.sh docker"
|
||||||
|
export AOSP_EXTRA_ARGS="-v $(cd $(dirname $0) && pwd -P)/$(basename $0):/usr/local/bin/run.sh:ro"
|
||||||
|
export AOSP_IMAGE="kylemanna/aosp:6.0-marshmallow"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Try to invoke the aosp wrapper with the following priority:
|
||||||
|
#
|
||||||
|
# 1. If AOSP_BIN is set, use that
|
||||||
|
# 2. If aosp is found in the shell $PATH
|
||||||
|
# 3. Grab it from the web
|
||||||
|
#
|
||||||
|
if [ -n "$AOSP_BIN" ]; then
|
||||||
|
$AOSP_BIN $args
|
||||||
|
elif [ -x "../utils/aosp" ]; then
|
||||||
|
../utils/aosp $args
|
||||||
|
elif [ -n "$(type -P aosp)" ]; then
|
||||||
|
aosp $args
|
||||||
|
else
|
||||||
|
if [ -n "$(type -P curl)" ]; then
|
||||||
|
bash <(curl -s $aosp_url) $args
|
||||||
|
elif [ -n "$(type -P wget)" ]; then
|
||||||
|
bash <(wget -q $aosp_url -O -) $args
|
||||||
|
else
|
||||||
|
echo "Unable to run the aosp binary"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user