Last active
November 12, 2019 15:59
-
-
Save rokibhasansagar/3980a2daf1bb45a7550447cd22524151 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| echo -en "The Whole PATH ENV is - " && echo $PATH | |
| which ghr && which repo | |
| mkdir $(pwd)/work && cd work | |
| echo "Initialize & Sync PBRP repo" | |
| echo $(pwd) | |
| repo init -q -u https://github.com/PitchBlackRecoveryProject/manifest_pb.git -b ${MANIFEST_BRANCH} --depth 1 | |
| time repo sync -c -q --force-sync --no-clone-bundle --no-tags -j32 | |
| echo "Get the Device Tree on place" | |
| git clone https://$GITHUB_TOKEN@github.com/rokibhasansagar/pbrp_rx5_renew -b ${CIRCLE_BRANCH} device/${VENDOR}/${CODENAME} | |
| rm -rf bootable/recovery && git clone https://github.com/rokibhasansagar/android_bootable_recovery -b ${PBRP_BRANCH} --single-branch bootable/recovery | |
| tree -a -L 4 >> initial_tree.info && curl --upload-file initial_tree.info https://transfer.sh/ && echo "" | |
| echo "Start the Build Process" | |
| export ALLOW_MISSING_DEPENDENCIES=true | |
| source build/envsetup.sh | |
| lunch ${BUILD_LUNCH} | |
| echo "the roomservice xml looks like this now - " | |
| cat .repo/local_manifests/roomservice.xml || echo "no roomservice" | |
| cd .repo/ | |
| tree -a -L 5 >> repo_tree.info && curl --upload-file repo_tree.info https://transfer.sh/ && echo "" | |
| cd .. | |
| echo "Keep the whole .repo/manifests and .repo/local_manifests folder" | |
| cp -a .repo/manifests $(pwd)/ | |
| cp -a .repo/local_manifests $(pwd)/ | |
| echo "Clean 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 | |
| mv local_manifests .repo/ | |
| # echo "syncing again" | |
| # time repo sync -c -q --force-sync --no-clone-bundle --no-tags -j32 | |
| cd device/ | |
| tree -a -L 3 >> last_tree.info && curl --upload-file last_tree.info https://transfer.sh/ && echo "" | |
| cd .. | |
| make -j16 recoveryimage | |
| 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 $(pwd)/out/target/product/${CODENAME}/PitchBlack*-UNOFFICIAL.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove this
`# Local manifests hack. Some builds fail if the file path does not exist.
A dummy would nothing but help in that case.
mkdir -p .repo/local_manifests && cat < .repo/local_manifests/roomservice.xml
EOF`