-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
47 lines (44 loc) · 1.31 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
image: ubuntu:20.04
build:
stage: build
script:
- apt update
- apt install android-tools-mkbootimg bc build-essential ca-certificates cpio curl git kmod libssl-dev libtinfo5 python2 sudo unzip wget xz-utils -y --no-install-recommends
- ln -sf python2.7 /usr/bin/python
- ./build.sh
artifacts:
paths:
- out/*
flashable:
stage: build
script:
- apt update
- apt install -y imagemagick img2simg jq sudo wget xz-utils
- DEVICE="$(source deviceinfo && echo $deviceinfo_codename)"
- ./build/fetch-and-prepare-latest-ota.sh "16.04/arm64/android9/devel" "$DEVICE" ota
- mkdir -p out
- ./build/system-image-from-ota.sh ota/ubuntu_command out
- ./splash/generate.sh out
artifacts:
paths:
- out/boot.img
- out/recovery.img
- out/splash.img
- out/system.img
when: manual
devel-flashable:
stage: deploy
script:
- apt update
- apt install -y imagemagick img2simg jq sudo wget xz-utils
- 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
- ./splash/generate.sh out
artifacts:
paths:
- out/boot.img
- out/recovery.img
- out/splash.img
- out/system.img