-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (33 loc) · 1.34 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
sudo: required
services:
- docker
before_install:
- docker pull surendrajat/twrp-builder: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_xolo_era4g.git device/xolo/era4g
- git clone https://github.com/TwrpBuilder/android_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 -v "$(pwd):/root/twrp/:rw,z" surendrajat/twrp-builder bash << EOF
cd /root/twrp/
source build/envsetup.sh && lunch omni_era4g-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/era4g/recovery.img $HOME/twrp/TWRP-$version-era4g-$(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_xolo_era4g
branch: mm6.0