From 7bfc33c44ed472d51928237d4b3f6195f3d495ac Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Tue, 2 Dec 2014 16:42:42 -0800 Subject: [PATCH] tests: Manifest overrides for build-kitkat * Allow environment variables to override the TEST_* variables to chagne the branch and manifest url. * Breaks hard link to Google's source repos (which have quotas...). --- tests/build-kitkat.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/build-kitkat.sh b/tests/build-kitkat.sh index 87a2a3f..8367259 100755 --- a/tests/build-kitkat.sh +++ b/tests/build-kitkat.sh @@ -9,11 +9,15 @@ set -ex if [ "$1" = "docker" ]; then - branch=android-4.4.4_r2.0.1 + TEST_BRANCH=${TEST_BRANCH:-android-4.4.4_r2.0.1} + TEST_URL=${TEST_URL:-https://android.googlesource.com/platform/manifest} + cpus=$(grep ^processor /proc/cpuinfo | wc -l) - repo init -u https://android.googlesource.com/platform/manifest -b $branch - repo sync -j $cpus + 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