Commit 55069df1 authored by Noud Kerver's avatar Noud Kerver

add build info and fix local manifest

parent 371a3826
Pipeline #256 failed with stage
in 7 minutes and 35 seconds
......@@ -34,7 +34,28 @@ fi
mkdir ~/replicant
cd ~/replicant
echo "* Building for $DEVICE *"
#####################################
function disk_space_free {
df -m | grep '/$' | awk '{ print $4 }'
}
TOTAL_MEM=$(cat /proc/meminfo | grep MemTotal | expr $(awk '{ print $2 }'))
PROCESSOR="$(cat /proc/cpuinfo | grep 'model name' | uniq | awk '{ split($0, a, "\\s+:\\s+"); print a[2] }')"
JAVA_VERSION="$(java -version 2>&1 | grep version | cut -d '"' -f 2)"
echo ""
echo "** System"
echo "* CPU: $PROCESSOR x${nproc}"
echo "* RAM: $TOTAL_MEM MB"
echo "* Free space: $(disk_space_free) MB"
echo "* Hostname: $(hostname)"
echo ""
echo "** Build"
echo "* User: $(whoami)"
echo "* Java: $JAVA_VERSION"
echo "* Device: $DEVICE"
echo ""
#####################################
......@@ -43,10 +64,16 @@ echo "# Repositories #"
echo "################"
echo "Initialize repositories"
if [ -z "$(stat .repo 2>/dev/null)" ]; then
repo init -u https://git.replicant.us/replicant/manifest.git --depth 1 -b replicant-6.0
fi
if [ -z "$(stat .repo/local_manifests/roomservice.xml 2>/dev/null)" ]; then
mkdir -v .repo/local_manifests
curl https://owo.codes/noud02/android-manifest/raw/replicant-6.0/roomservice.xml > .repo/local_manifests/roomservice.xml
fi
echo "Sync repositories"
repo sync -j$(nproc)
......
......@@ -76,5 +76,6 @@ apt-get install -y \
aapt \
lzop \
repo \
gpg
gpg \
gawk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment