-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (71 loc) · 5.2 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
os: linux
dist: focal
group: edge
language: generic
git:
depth: 2
addons:
apt:
update:
- true
packages:
- wput
- aria2
- zstd
env:
global:
- secure: "ZCfVZ1I024wD9q5v4tIl5PaLhI8qJIQeQDkh1yQ7g5p6xyVXDSvgYUFsywek2GiWZRpny2UtPOdSFKwejtIAOSTtd+0og1CzgRu+fGRZokPeV4atYSD+vAqLnEWtM2rrA6K6WNL+GcYVkvfjoY+plTiacCi8htujrB7de4Tlqfw0WA54OfOwJm8lMSgcl3DKvcUHDaeFmF92Hyxum7NWt+/vWlR3ewkW7GZqsAZjbPJhT5QnAwUnXCz71qxQ0JgBR94wEgzGJkDPYCvjY9bPRMPIAc7NQTUmfW6XzlAHm3WbiyEdd/SQ7iOyEDUc5jaqUTCkniTj9R37hI4aFpEokOKccShuvUM091lVuUUmIUlywNU0OxX3sb87/pAUQo0okYnuJFTrhCUkAM9mULpNVfvO2alKnciEiPbI1wnjjHbvaT7Y2JTC/3ChFSHvPGAo/kUjyc9wRrJ+y2bFDdUMI//MBC3EB5rUceRFCblxqLPqajmQpmA8JNSl1R7qZLrhq9dE2IYJZrjpTzX7sDjVdCJyN8elFr5C46eaxxUuzgCk8+Opt3OTkEqVW345WZ3ySI9GzZZbeM6mtS3WTnTN/ly5PWsZId9FSN1TMntDBvXw+T46Qzox6K5b0OhgX+nuQkBVz2eugoUQHvdm8EQJ4PuDxfjboxc1MRU7rWiVQLU="
- secure: "YBhg8uaJBS+vN3LlzW7A02swQhUE7ZoHgyyC1ylFIy7qfzkT7+hQaFYA/8DS2gS1f+WRDVo2C0XFbo/a5gX78teDu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v5S3bl3FbUXHmOqGUp0EssokrR6NRRqm7BW+POHDr5C3HmImB1PR7dga4Rshk+d5L/gEGui4e6xh5H+wI9EeYY+0ULag/q1lWSSnmVJpAIiCOCNvHb6JIF4byr7+xo8ofRcFaVuasgVNt8wWQAfIJ3x4RQ3FSicgi7YqJbPiruHRmoV3TQlfqiFEYIxc/nE0c="
services:
- docker
before_install:
- docker pull yshalsager/cyanogenmod:latest
before_script:
- cd $HOME && mkdir -p $HOME/twrp
- aria2c -x16 -s8 --console-log-level=warn --summary-interval=0 --check-certificate=false
https://github.com/PhantomZone54/twrp_sources_norepo/releases/download/v3.5.0_9-20210130/MinimalOmniRecovery-twrp-6.0-norepo-20210130.tzst
-o twrp.tzst || wget -q --show-progress --progress=bar:force --no-check-certificate
https://github.com/PhantomZone54/twrp_sources_norepo/releases/download/v3.5.0_9-20210130/MinimalOmniRecovery-twrp-6.0-norepo-20210130.tzst
-O twrp.tzst
- cd $HOME/twrp
- tar --zstd -xf ../twrp.tzst && rm $HOME/twrp.tzst
script:
- cd $HOME/twrp
- git clone https://github.com/PhantomZone54/device_twrp_Symphony_H400.git -b master --depth 1 device/Symphony/H400
- if [ ! -f device/Symphony/H400/omni.dependencies ]; then echo -e "[\n]" > device/Symphony/H400/omni.dependencies; fi
- rm -rf bootable/recovery && git clone https://github.com/TeamWin/android_bootable_recovery -b android-9.0 --depth 1 bootable/recovery
- git clone https://github.com/ZeoRexDevs/device_generic_mtk_twrpbuilder device/generic/twrpbuilder
- |
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
export DEBIAN_FRONTEND=noninteractive
apt-get -qqy update && apt-get -qqy upgrade
cd /home/cmbuild/twrp/
source build/envsetup.sh
lunch omni_H400-eng
make -j$(nproc --all) 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/H400/recovery.img $HOME/twrp/TWRP-$version-H400-$(date +"%Y%m%d")-Unofficial.img
- cd $HOME/twrp/
- curl -s --upload-file TWRP-$version-H400-$(date +"%Y%m%d")-Unofficial.img https://transfer.sh/ && echo ""
- wput TWRP-$version-H400-$(date +"%Y%m%d")-Unofficial.img ftp://"$FTPUser":"$FTPPass"@"$FTPHost"//TWBuild-$(date +%Y%m%d-%H%M)/
deploy:
cleanup: false
provider: releases
token:
secure: "qbae9OGkgVlK0p9vOgSg560iEgxdzaFk22FJPVbXf/n2VTz97WiZ+4PwunFmPt1czLiwRSXSwd6rPzZnu5UTtvyEhehOiiFxf9GaoFwVcWmjLQWc/9tQNtG2qNmRE3KlyTYHQv/wJAzLED6NXtYLnR6lMnz6kZmhMOhU01BDbJKbEQ4VAT9bWXvLiqXEeMt0fxXZii8WayvX8CaxlN6KYYASd+srKC/QYu+xvQScgzcIAylalgL+faRXYvyDhLk3aPI6ccmK+2Jad+/6ANjlvzo7q8ZT6wI0v4i9K1AfwA0kTTQIFELZMlYCzbNVCS4abVa+yHQBcX4b/K7FA+09zmOckusgPNq5v8PQOkYxCnGBNWxBCAGjjjaT6/ywR06uMAA4FHB8ReJMUVCl4Qwbylmj6C5WTNzqVJy5F96jLT/rqUqQdlykreYqYqYz/tP6ZZrcdNwnjYYkmLbZ02x/EQ21L792hzua7/KWpXbxoPkq9qqh/EA+qSeDkmOpJ5GRzBGj6Dq4VnXf4eMfSN6XI5yGOFp4hYQRrfuL1RmI3yZ8N7ZxlG+aRVIE2AYaZAh/GRxztzEM1xZ8dtRf9wcOIh2CgfXibQFPGa1HKs57k1w9dbgBrV2HqkbAsPHuV7px4RZ8CyoUtPghzTCwkltRVEZRCJydwImsV9lPAE3Ay2s="
file_glob: true
file: $HOME/twrp/*.img
on:
tags: false
repo: PhantomZone54/device_twrp_Symphony_H400
branch: master
branches:
only:
- master
except:
- /^(?i:untagged)-.*$/
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/