-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (36 loc) · 1.4 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
35
36
37
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-cleaned/omni_twrp-5.1.1_cleaned.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_samsung_j1pop3gjv.git device/samsung/j1pop3gjv
- git clone https://github.com/TwrpBuilder/android_device_generic_twrpbuilder.git device/generic/twrpbuilder
- git clone https://github.com/omnirom/android_bootable_recovery.git bootable/recovery --depth=1
- |
docker run --rm -i -v "$(pwd):/root/twrp/:rw,z" surendrajat/twrp-builder bash << EOF
cd /root/twrp/
source build/envsetup.sh && lunch omni_j1pop3gjv-eng && 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/j1pop3gjv/recovery.img $HOME/twrp/TWRP-$version-j1pop3gjv-$(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_samsung_j1pop3gjv
branch: master
branches:
except:
- /^(?i:untagged)-.*$/