Created
April 2, 2020 09:13
-
-
Save rokibhasansagar/d3d3ecaa80eabe15a11cfe32c1b2bfbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build.sh b/build.sh | |
index 22f66b76eeac1c13ba41b415da81957f6798b2fe..19ede910311b388a9001806e730503b99adf9415 100644 | |
--- a/build.sh | |
+++ b/build.sh | |
@@ -45,10 +45,12 @@ if [[ -n $EXTRA_CMD ]]; then | |
cd $DIR/work | |
fi | |
-echo -e "\nPreparing Delicious Lunch..." | |
+LOG_FILE="/tmp/${CODENAME}_build_${CIRCLE_BUILD_NUM}.log" | |
+ | |
+echo -e "\nPreparing Delicious Lunch for ${CODENAME} \n" 2>&1 > $LOG_FILE | |
export ALLOW_MISSING_DEPENDENCIES=true | |
-source build/envsetup.sh | |
-lunch ${BUILD_LUNCH} | |
+source build/envsetup.sh 2>&1 >> $LOG_FILE | |
+lunch ${BUILD_LUNCH} 2>&1 >> $LOG_FILE | |
# Keep the whole .repo/manifests folder | |
cp -a .repo/manifests $(pwd)/ | |
@@ -56,7 +58,7 @@ echo "Cleaning up the .repo, no use of it now" | |
rm -rf .repo | |
mkdir -p .repo && mv manifests .repo/ && ln -s .repo/manifests/default.xml .repo/manifest.xml | |
-make -j$(nproc --all) recoveryimage | |
+make -j$(nproc --all) recoveryimage 2>&1 | tee -api $LOG_FILE | |
echo -e "\nYummy Recovery is Served.\n" | |
echo "Ready to Deploy" | |
@@ -87,4 +89,7 @@ elif [[ $TEST_BUILD == 'true' ]] && [[ -n $TEST_BUILDFILE ]]; then | |
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -n "Test Release for $(echo $CODENAME)" -b "PBRP $(echo $VERSION)" -c ${CIRCLE_SHA1} -delete ${VERSION}-test ${UPLOAD_PATH} | |
fi | |
+echo "Uploading full build log now" | |
+curl -F "file=@${LOG_FILE}" https://file.io && echo "" | |
+ | |
echo -e "\n\nAll Done Gracefully\n\n" | |
diff --git a/pb_build.sh b/pb_build.sh | |
index b380ddc306cfeaad11eb4bb2cc9a4719c65777fd..a517935371a8a263862b84c0067b6db658a58d90 100755 | |
--- a/pb_build.sh | |
+++ b/pb_build.sh | |
@@ -25,7 +25,6 @@ red='\033[0;31m' | |
nocol='\033[0m' | |
purple='\e[0;35m' | |
white='\e[0;37m' | |
-VERSION="2.9.0" | |
DATE=$(date +%Y%m%d-%H%M) | |
PB_VENDOR=vendor/pb | |
PB_WORK=$OUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment