-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
106 lines (100 loc) · 3.79 KB
/
.gitlab-ci.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
image: ubuntu:20.04
build-focal-herolte:
stage: build
script:
- apt update
- apt install android-tools-mkbootimg bc bison build-essential ca-certificates cpio curl flex git kmod libssl-dev libtinfo5 python2 sudo unzip wget xz-utils -y --no-install-recommends
- ln -sf python2.7 /usr/bin/python
- ./prepare_overlays.sh herolte
- ./build.sh
artifacts:
paths:
- out/*
build-focal-hero2lte:
stage: build
script:
- apt update
- apt install android-tools-mkbootimg bc bison build-essential ca-certificates cpio curl flex git kmod libssl-dev libtinfo5 python2 sudo unzip wget xz-utils -y --no-install-recommends
- ln -sf python2.7 /usr/bin/python
- ./prepare_overlays.sh hero2lte
- ./build.sh
artifacts:
paths:
- out/*
build-focal-gracerlte:
stage: build
script:
- apt update
- apt install android-tools-mkbootimg bc bison build-essential ca-certificates cpio curl flex git kmod libssl-dev libtinfo5 python2 sudo unzip wget xz-utils -y --no-install-recommends
- ln -sf python2.7 /usr/bin/python
- ./prepare_overlays.sh gracerlte
- ./build.sh
artifacts:
paths:
- out/*
devel-flashable-focal-herolte:
variables:
ROOTFS_URL: "https://ci.ubports.com/job/focal-hybris-rootfs-arm64/job/master/lastSuccessfulBuild/artifact/ubuntu-touch-android9plus-rootfs-arm64.tar.gz"
OTA_CHANNEL: "20.04/arm64/android9plus/devel"
DEV_TARBALL_VARIANT: _usrmerge
stage: deploy
script:
- apt update
- apt install -y git img2simg jq sudo wget xz-utils
- git clone https://gitlab.com/ubports/community-ports/halium-generic-adaptation-build-tools -b halium-11 build
- ln -s deviceinfo_herolte deviceinfo
- DEVICE="$(source deviceinfo && echo $deviceinfo_codename)"
- ./build/prepare-fake-ota.sh out/device_$DEVICE.tar.xz ota
- mkdir -p out
- ./build/system-image-from-ota.sh ota/ubuntu_command out
- mv out/rootfs.img out/ubuntu.img
artifacts:
paths:
- out/boot.img
- out/recovery.img
- out/ubuntu.img
when: manual
devel-flashable-focal-hero2lte:
variables:
ROOTFS_URL: "https://ci.ubports.com/job/focal-hybris-rootfs-arm64/job/master/lastSuccessfulBuild/artifact/ubuntu-touch-android9plus-rootfs-arm64.tar.gz"
OTA_CHANNEL: "20.04/arm64/android9plus/devel"
DEV_TARBALL_VARIANT: _usrmerge
stage: deploy
script:
- apt update
- apt install -y git img2simg jq sudo wget xz-utils
- git clone https://gitlab.com/ubports/community-ports/halium-generic-adaptation-build-tools -b halium-11 build
- ln -s deviceinfo_hero2lte deviceinfo
- DEVICE="$(source deviceinfo && echo $deviceinfo_codename)"
- ./build/prepare-fake-ota.sh out/device_$DEVICE.tar.xz ota
- mkdir -p out
- ./build/system-image-from-ota.sh ota/ubuntu_command out
- mv out/rootfs.img out/ubuntu.img
artifacts:
paths:
- out/boot.img
- out/recovery.img
- out/ubuntu.img
when: manual
devel-flashable-focal-gracerlte:
variables:
ROOTFS_URL: "https://ci.ubports.com/job/focal-hybris-rootfs-arm64/job/master/lastSuccessfulBuild/artifact/ubuntu-touch-android9plus-rootfs-arm64.tar.gz"
OTA_CHANNEL: "20.04/arm64/android9plus/devel"
DEV_TARBALL_VARIANT: _usrmerge
stage: deploy
script:
- apt update
- apt install -y git img2simg jq sudo wget xz-utils
- git clone https://gitlab.com/ubports/community-ports/halium-generic-adaptation-build-tools -b halium-11 build
- ln -s deviceinfo_gracerlte deviceinfo
- DEVICE="$(source deviceinfo && echo $deviceinfo_codename)"
- ./build/prepare-fake-ota.sh out/device_$DEVICE.tar.xz ota
- mkdir -p out
- ./build/system-image-from-ota.sh ota/ubuntu_command out
- mv out/rootfs.img out/ubuntu.img
artifacts:
paths:
- out/boot.img
- out/recovery.img
- out/ubuntu.img
when: manual