-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
038a92a
commit 62c6840
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
sudo: required | ||
services: | ||
- docker | ||
before_install: | ||
- docker pull yshalsager/cyanogenmod:latest | ||
before_script: | ||
- cd $HOME && mkdir twrp | ||
- wget -q https://github.com/TwrpBuilder/twrp-sources/releases/download/omni_twrp-5.1.1-20180211/omni_twrp-5.1.1-20180211-norepo.tar.xz | ||
-O $HOME/twrp.tar.xz | ||
- tar -xJf twrp.tar.xz --directory $HOME/twrp/ && rm twrp.tar.xz | ||
script: | ||
- cd $HOME/twrp/ && git clone https://github.com/TwrpBuilder/android_device_UMI_Rome.git device/UMI/Rome | ||
- git clone https://github.com/TwrpBuilder/device_generic_twrpbuilder.git device/generic/twrpbuilder | ||
- rm -rf bootable/recovery && git clone https://github.com/omnirom/android_bootable_recovery.git bootable/recovery | ||
- | | ||
docker run --rm -i -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/home/cmbuild/twrp/:rw,z" yshalsager/cyanogenmod bash << EOF | ||
cd /home/cmbuild/twrp/ | ||
source build/envsetup.sh && lunch omni_Rome-userdebug && make -j16 recoveryimage | ||
exit | ||
EOF | ||
after_success: | ||
- export version=$(cat bootable/recovery/variables.h | grep "define TW_MAIN_VERSION_STR" | cut -d '"' -f2) | ||
- cp $HOME/twrp/out/target/product/Rome/recovery.img $HOME/twrp/TWRP-$version-Rome-$(date +"%Y%m%d").img | ||
|
||
deploy: | ||
skip_cleanup: true | ||
provider: releases | ||
api_key: "$GIT_OAUTH_TOKEN_TB" | ||
file_glob: true | ||
file: $HOME/twrp/*.img | ||
on: | ||
tags: false | ||
repo: TwrpBuilder/android_device_UMI_Rome | ||
branch: master |