forked from zarhus/meta-trenchboot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
139 lines (134 loc) · 5.19 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
stages:
- build
- build_uefi
- test
build:
image: kasproject/kas:2.0
stage: build
tags:
- local
- build
timeout: 6h
cache: {}
script:
- cd ..
- sed -e "s@<YOCTO_HTTP_CACHE_IP>@$YOCTO_HTTP_CACHE_IP@" -i meta-trenchboot/kas-cache.yml
- kas build meta-trenchboot/kas-pcetb-base.yml:meta-trenchboot/kas-cache.yml
- kas build meta-trenchboot/kas-pcetb-xen.yml:meta-trenchboot/kas-cache.yml
- kas build meta-trenchboot/kas-pcetb-initramfs.yml:meta-trenchboot/kas-cache.yml
after_script:
- mkdir artifacts
- echo "https://gitlab.com/trenchboot1/3mdeb/meta-trenchboot/-/jobs/$CI_JOB_ID/artifacts/download" > artifacts/artifacts_url.txt
- cp ../build/tmp/deploy/images/pcengines-apu2/tb-minimal-image-pcengines-apu2.wic.gz artifacts
- cp ../build/tmp/deploy/images/pcengines-apu2/xen-tb-dom0-image-pcengines-apu2.wic.gz artifacts
- cp ../build/tmp/deploy/images/pcengines-apu2/tb-minimal-image-pcengines-apu2.wic.bmap artifacts
- cp ../build/tmp/deploy/images/pcengines-apu2/xen-tb-dom0-image-pcengines-apu2.wic.bmap artifacts
- cp ../build/tmp/deploy/images/pcengines-apu2/bzImage artifacts
- cp ../build/tmp/deploy/images/pcengines-apu2/tb-minimal-initramfs-image-pcengines-apu2.cpio.gz artifacts
- time rsync -av -e "ssh -i $YOCTO_HTTP_CACHE_RSYNC_KEY -o StrictHostKeyChecking=no" ../build/downloads $YOCTO_HTTP_CACHE_USER@$YOCTO_HTTP_CACHE_IP:$YOCTO_CACHE_PATH
- time rsync -av -e "ssh -i $YOCTO_HTTP_CACHE_RSYNC_KEY -o StrictHostKeyChecking=no" ../build/sstate-cache $YOCTO_HTTP_CACHE_USER@$YOCTO_HTTP_CACHE_IP:$YOCTO_CACHE_PATH
artifacts:
name: "meta-trenchboot-${CI_COMMIT_SHA::12}"
paths:
- artifacts/*
build_uefi:
image: kasproject/kas:2.0
stage: build
tags:
- local
- build
timeout: 6h
cache: {}
script:
- cd ..
- sed -e "s@<YOCTO_HTTP_CACHE_IP>@$YOCTO_HTTP_CACHE_IP@" -i meta-trenchboot/kas-cache.yml
- kas build meta-trenchboot/kas-generictb-base.yml:meta-trenchboot/kas-cache.yml
after_script:
- mkdir artifacts-uefi
- echo "https://gitlab.com/trenchboot1/3mdeb/meta-trenchboot/-/jobs/$CI_JOB_ID/artifacts/download" > artifacts-uefi/artifacts_url.txt
- cp ../build/tmp/deploy/images/genericx86-64/tb-minimal-efi-image-genericx86-64.wic.gz artifacts-uefi
- cp ../build/tmp/deploy/images/genericx86-64/tb-minimal-efi-image-genericx86-64.wic.bmap artifacts-uefi
- time rsync -av -e "ssh -i $YOCTO_HTTP_CACHE_RSYNC_KEY -o StrictHostKeyChecking=no" ../build/downloads $YOCTO_HTTP_CACHE_USER@$YOCTO_HTTP_CACHE_IP:$YOCTO_CACHE_PATH
- time rsync -av -e "ssh -i $YOCTO_HTTP_CACHE_RSYNC_KEY -o StrictHostKeyChecking=no" ../build/sstate-cache $YOCTO_HTTP_CACHE_USER@$YOCTO_HTTP_CACHE_IP:$YOCTO_CACHE_PATH
artifacts:
name: "meta-trenchboot-uefi${CI_COMMIT_SHA::12}"
paths:
- artifacts-uefi/*
test_boot_apu2:
image:
name: 3mdeb/rf-docker:0.4.2
# https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#overriding-the-entrypoint-of-an-image
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2692
# use EMPTY ENTRYPOINT for docker >17.06
entrypoint: [""]
stage: test
tags:
- local
- test
cache: {}
before_script:
- git clone https://github.com/3mdeb/testing-trenchboot
- cd testing-trenchboot
- git show HEAD
- git submodule sync
- git submodule update --init
script:
- export ARTIFACTS_URL=$(cat ../artifacts/artifacts_url.txt)
- robot -L TRACE -v rte_ip:$RTE_IP_APU2 -v config:apu2 -v artifacts_link:$ARTIFACTS_URL os/yocto_install.robot
artifacts:
paths:
- testing-trenchboot/log.html
- testing-trenchboot/report.html
- testing-trenchboot/output.xml
when: always
test_boot_asrock:
image:
name: 3mdeb/rf-docker:0.4.2
entrypoint: [""]
stage: test
tags:
- local
- test
cache: {}
before_script:
- git clone https://github.com/3mdeb/testing-trenchboot
- cd testing-trenchboot
- git show HEAD
- git submodule sync
- git submodule update --init
script:
- export ARTIFACTS_URL=$(cat ../artifacts-uefi/artifacts_url.txt)
- robot -L TRACE -v rte_ip:$RTE_IP_1000V -v config:asrock -v artifacts_link:$ARTIFACTS_URL os/yocto_install.robot
artifacts:
paths:
- testing-trenchboot/log.html
- testing-trenchboot/report.html
- testing-trenchboot/output.xml
when: always
test_boot_supermicro:
image:
name: 3mdeb/rf-docker:0.4.2
# https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#overriding-the-entrypoint-of-an-image
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2692
# use EMPTY ENTRYPOINT for docker >17.06
entrypoint: [""]
stage: test
tags:
- local
- test
cache: {}
before_script:
- git clone https://github.com/3mdeb/testing-trenchboot
- cd testing-trenchboot
- git show HEAD
- git submodule sync
- git submodule update --init
script:
- export ARTIFACTS_URL=$(cat ../artifacts-uefi/artifacts_url.txt)
- robot -L TRACE -v rte_ip:$RTE_IP_SUPERMICRO -v config:supermicro -v artifacts_link:$ARTIFACTS_URL os/yocto_install.robot
artifacts:
paths:
- testing-trenchboot/log.html
- testing-trenchboot/report.html
- testing-trenchboot/output.xml
when: always