]> Git Repo - J-u-boot.git/blame - .azure-pipelines.yml
tools: kwboot: Refactor and fix writing buffer
[J-u-boot.git] / .azure-pipelines.yml
CommitLineData
d2e680fa 1variables:
9e0c131a 2 windows_vm: vs2017-win2016
bf275222 3 ubuntu_vm: ubuntu-18.04
7b4116d4 4 macos_vm: macOS-10.15
7fde64c0 5 ci_runner_image: trini/u-boot-gitlab-ci-runner:focal-20210827-30Sep2021
bf275222
BM
6 # Add '-u 0' options for Azure pipelines, otherwise we get "permission
7 # denied" error when it tries to "useradd -m -u 1001 vsts_azpcontainer",
8 # since our $(ci_runner_image) user is not root.
9 container_option: -u 0
10 work_dir: /u
d2e680fa
BM
11
12jobs:
13 - job: tools_only_windows
14 displayName: 'Ensure host tools build for Windows'
15 pool:
16 vmImage: $(windows_vm)
d2e680fa 17 steps:
437e70f7 18 - powershell: |
1ce892cb 19 (New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2021-06-04/msys2-base-x86_64-20210604.sfx.exe", "sfx.exe")
d2e680fa
BM
20 displayName: 'Install MSYS2'
21 - script: |
437e70f7 22 sfx.exe -y -o%CD:~0,2%\
f7faddf6 23 %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Syyuu"
d2e680fa
BM
24 displayName: 'Update MSYS2'
25 - script: |
94d66d8b 26 %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm --needed -Sy make gcc bison flex diffutils openssl-devel"
d2e680fa
BM
27 displayName: 'Install Toolchain'
28 - script: |
d2e680fa 29 echo make tools-only_defconfig tools-only NO_SDL=1 > build-tools.sh
f7faddf6 30 %CD:~0,2%\msys64\usr\bin\bash -lc "bash build-tools.sh"
d2e680fa
BM
31 displayName: 'Build Host Tools'
32 env:
33 # Tell MSYS2 we need a POSIX emulation layer
34 MSYSTEM: MSYS
35 # Tell MSYS2 not to ‘cd’ our startup directory to HOME
36 CHERE_INVOKING: yes
bf275222 37
7b4116d4
TR
38 - job: tools_only_macOS
39 displayName: 'Ensure host tools build for macOS X'
40 pool:
41 vmImage: $(macos_vm)
42 steps:
43 - script: brew install make
44 displayName: Brew install dependencies
45 - script: |
46 gmake tools-only_config tools-only NO_SDL=1 \
47 HOSTCFLAGS="-I/usr/local/opt/[email protected]/include" \
48 HOSTLDFLAGS="-L/usr/local/opt/[email protected]/lib" \
49 -j$(sysctl -n hw.logicalcpu)
50 displayName: 'Perform tools-only build'
51
bf275222
BM
52 - job: cppcheck
53 displayName: 'Static code analysis with cppcheck'
54 pool:
55 vmImage: $(ubuntu_vm)
56 container:
57 image: $(ci_runner_image)
58 options: $(container_option)
59 steps:
4ee7f527 60 - script: cppcheck -j$(nproc) --force --quiet --inline-suppr .
bf275222 61
4eb0fc99
HS
62 - job: htmldocs
63 displayName: 'Build HTML documentation'
64 pool:
65 vmImage: $(ubuntu_vm)
66 container:
67 image: $(ci_runner_image)
68 options: $(container_option)
69 steps:
836049d6
HS
70 - script: |
71 virtualenv -p /usr/bin/python3 /tmp/venvhtml
72 . /tmp/venvhtml/bin/activate
73 pip install -r doc/sphinx/requirements.txt
74 make htmldocs
4eb0fc99 75
bf275222
BM
76 - job: todo
77 displayName: 'Search for TODO within source tree'
78 pool:
79 vmImage: $(ubuntu_vm)
80 container:
81 image: $(ci_runner_image)
82 options: $(container_option)
83 steps:
84 - script: grep -r TODO .
85 - script: grep -r FIXME .
86 - script: grep -r HACK . | grep -v HACKKIT
87
88 - job: sloccount
89 displayName: 'Some statistics about the code base'
90 pool:
91 vmImage: $(ubuntu_vm)
92 container:
93 image: $(ci_runner_image)
94 options: $(container_option)
95 steps:
96 - script: sloccount .
97
98 - job: maintainers
99 displayName: 'Ensure all configs have MAINTAINERS entries'
100 pool:
101 vmImage: $(ubuntu_vm)
102 container:
103 image: $(ci_runner_image)
104 options: $(container_option)
105 steps:
106 - script: |
107 if [ `./tools/genboardscfg.py -f 2>&1 | wc -l` -ne 0 ]; then exit 1; fi
108
109 - job: tools_only
110 displayName: 'Ensure host tools build'
111 pool:
112 vmImage: $(ubuntu_vm)
113 container:
114 image: $(ci_runner_image)
115 options: $(container_option)
116 steps:
117 - script: |
118 make tools-only_config tools-only -j$(nproc)
119
120 - job: envtools
121 displayName: 'Ensure env tools build'
122 pool:
123 vmImage: $(ubuntu_vm)
124 container:
125 image: $(ci_runner_image)
126 options: $(container_option)
127 steps:
128 - script: |
129 make tools-only_config envtools -j$(nproc)
130
131 - job: utils
7261833f 132 displayName: 'Run binman, buildman, dtoc, Kconfig and patman testsuites'
bf275222
BM
133 pool:
134 vmImage: $(ubuntu_vm)
135 steps:
136 - script: |
137 cat << EOF > build.sh
138 set -ex
139 cd ${WORK_DIR}
140 EOF
141 cat << "EOF" >> build.sh
142 git config --global user.name "Azure Pipelines"
143 git config --global user.email [email protected]
144 export USER=azure
26a426a1 145 virtualenv -p /usr/bin/python3 /tmp/venv
bf275222 146 . /tmp/venv/bin/activate
38229b55 147 pip install -r test/py/requirements.txt
bf0a8133 148 export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox_spl
bf275222
BM
149 export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
150 export PATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}
a0ac1d90 151 ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w --board sandbox_spl
bf275222
BM
152 ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test
153 ./tools/buildman/buildman -t
154 ./tools/dtoc/dtoc -t
6bb74de7 155 ./tools/patman/patman test
7261833f 156 make O=${UBOOT_TRAVIS_BUILD_DIR} testconfig
bf275222
BM
157 EOF
158 cat build.sh
159 # We cannot use "container" like other jobs above, as buildman
160 # seems to hang forever with pre-configured "container" environment
161 docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh
162
6cfd09d4
T
163 - job: nokia_rx51_test
164 displayName: 'Run tests for Nokia RX-51 (aka N900)'
165 pool:
166 vmImage: $(ubuntu_vm)
167 container:
168 image: $(ci_runner_image)
169 options: $(container_option)
170 steps:
171 - script: |
172 ./tools/buildman/buildman --fetch-arch arm
173 export PATH=~/.buildman-toolchains/gcc-9.2.0-nolibc/arm-linux-gnueabi/bin/:$PATH
174 test/nokia_rx51_test.sh
175
bf275222
BM
176 - job: test_py
177 displayName: 'test.py'
178 pool:
179 vmImage: $(ubuntu_vm)
180 strategy:
181 matrix:
182 sandbox:
183 TEST_PY_BD: "sandbox"
0219d014
TR
184 sandbox_clang:
185 TEST_PY_BD: "sandbox"
66217225 186 OVERRIDE: "-O clang-12"
bf275222
BM
187 sandbox_spl:
188 TEST_PY_BD: "sandbox_spl"
afb26ba9 189 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
6c914e42
SG
190 sandbox_noinst:
191 TEST_PY_BD: "sandbox_noinst"
192 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
bf275222
BM
193 sandbox_flattree:
194 TEST_PY_BD: "sandbox_flattree"
bf275222
BM
195 evb_ast2500:
196 TEST_PY_BD: "evb-ast2500"
197 TEST_PY_ID: "--id qemu"
15e30106
KA
198 vexpress_ca9x4:
199 TEST_PY_BD: "vexpress_ca9x4"
200 TEST_PY_ID: "--id qemu"
bf275222
BM
201 integratorcp_cm926ejs:
202 TEST_PY_BD: "integratorcp_cm926ejs"
203 TEST_PY_ID: "--id qemu"
204 TEST_PY_TEST_SPEC: "not sleep"
bf275222
BM
205 qemu_arm:
206 TEST_PY_BD: "qemu_arm"
207 TEST_PY_TEST_SPEC: "not sleep"
bf275222
BM
208 qemu_arm64:
209 TEST_PY_BD: "qemu_arm64"
210 TEST_PY_TEST_SPEC: "not sleep"
e35c2a8f
DS
211 qemu_malta:
212 TEST_PY_BD: "malta"
213 TEST_PY_ID: "--id qemu"
214 TEST_PY_TEST_SPEC: "not sleep and not efi"
215 qemu_maltael:
216 TEST_PY_BD: "maltael"
217 TEST_PY_ID: "--id qemu"
218 TEST_PY_TEST_SPEC: "not sleep and not efi"
219 qemu_malta64:
220 TEST_PY_BD: "malta64"
221 TEST_PY_ID: "--id qemu"
222 TEST_PY_TEST_SPEC: "not sleep and not efi"
223 qemu_malta64el:
224 TEST_PY_BD: "malta64el"
225 TEST_PY_ID: "--id qemu"
226 TEST_PY_TEST_SPEC: "not sleep and not efi"
bf275222
BM
227 qemu_ppce500:
228 TEST_PY_BD: "qemu-ppce500"
229 TEST_PY_TEST_SPEC: "not sleep"
a379d330
BM
230 qemu_riscv32:
231 TEST_PY_BD: "qemu-riscv32"
232 TEST_PY_TEST_SPEC: "not sleep"
bf275222
BM
233 qemu_riscv64:
234 TEST_PY_BD: "qemu-riscv64"
235 TEST_PY_TEST_SPEC: "not sleep"
49fb28a4
BM
236 qemu_riscv32_spl:
237 TEST_PY_BD: "qemu-riscv32_spl"
238 TEST_PY_TEST_SPEC: "not sleep"
49fb28a4
BM
239 qemu_riscv64_spl:
240 TEST_PY_BD: "qemu-riscv64_spl"
241 TEST_PY_TEST_SPEC: "not sleep"
bf275222
BM
242 qemu_x86:
243 TEST_PY_BD: "qemu-x86"
244 TEST_PY_TEST_SPEC: "not sleep"
bf275222
BM
245 qemu_x86_64:
246 TEST_PY_BD: "qemu-x86_64"
247 TEST_PY_TEST_SPEC: "not sleep"
0e125756
MV
248 r2dplus_i82557c:
249 TEST_PY_BD: "r2dplus"
250 TEST_PY_ID: "--id i82557c_qemu"
251 r2dplus_pcnet:
252 TEST_PY_BD: "r2dplus"
253 TEST_PY_ID: "--id pcnet_qemu"
254 r2dplus_rtl8139:
255 TEST_PY_BD: "r2dplus"
256 TEST_PY_ID: "--id rtl8139_qemu"
257 r2dplus_tulip:
258 TEST_PY_BD: "r2dplus"
259 TEST_PY_ID: "--id tulip_qemu"
0e60b3a7
BM
260 sifive_unleashed_sdcard:
261 TEST_PY_BD: "sifive_unleashed"
262 TEST_PY_ID: "--id sdcard_qemu"
263 sifive_unleashed_spi-nor:
264 TEST_PY_BD: "sifive_unleashed"
265 TEST_PY_ID: "--id spi-nor_qemu"
f7c6ee7f
MS
266 xilinx_zynq_virt:
267 TEST_PY_BD: "xilinx_zynq_virt"
bf275222
BM
268 TEST_PY_ID: "--id qemu"
269 TEST_PY_TEST_SPEC: "not sleep"
bf275222
BM
270 xilinx_versal_virt:
271 TEST_PY_BD: "xilinx_versal_virt"
272 TEST_PY_ID: "--id qemu"
273 TEST_PY_TEST_SPEC: "not sleep"
bf275222
BM
274 xtfpga:
275 TEST_PY_BD: "xtfpga"
276 TEST_PY_ID: "--id qemu"
277 TEST_PY_TEST_SPEC: "not sleep"
bf275222
BM
278 steps:
279 - script: |
280 cat << EOF > test.sh
281 set -ex
282 # make environment variables available as tests are running inside a container
283 export WORK_DIR="${WORK_DIR}"
284 export TEST_PY_BD="${TEST_PY_BD}"
285 export TEST_PY_ID="${TEST_PY_ID}"
286 export TEST_PY_TEST_SPEC="${TEST_PY_TEST_SPEC}"
0219d014 287 export OVERRIDE="${OVERRIDE}"
bf275222
BM
288 EOF
289 cat << "EOF" >> test.sh
290 # the below corresponds to .gitlab-ci.yml "before_script"
291 cd ${WORK_DIR}
85ae52b9 292 git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
bf275222
BM
293 ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
294 ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
bf275222
BM
295 grub-mkimage --prefix=\"\" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
296 grub-mkimage --prefix=\"\" -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
49fb28a4 297 if [[ "${TEST_PY_BD}" == "qemu-riscv32_spl" ]]; then
b6b35fd2
HS
298 wget -O - https://github.com/riscv/opensbi/releases/download/v0.9/opensbi-0.9-rv-bin.tar.xz | tar -C /tmp -xJ;
299 export OPENSBI=/tmp/opensbi-0.9-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin;
49fb28a4 300 fi
0e60b3a7 301 if [[ "${TEST_PY_BD}" == "qemu-riscv64_spl" ]] || [[ "${TEST_PY_BD}" == "sifive_unleashed" ]]; then
b6b35fd2
HS
302 wget -O - https://github.com/riscv/opensbi/releases/download/v0.9/opensbi-0.9-rv-bin.tar.xz | tar -C /tmp -xJ;
303 export OPENSBI=/tmp/opensbi-0.9-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin;
49fb28a4 304 fi
bf275222
BM
305 # the below corresponds to .gitlab-ci.yml "script"
306 cd ${WORK_DIR}
4e32fed4 307 export UBOOT_TRAVIS_BUILD_DIR=/tmp/${TEST_PY_BD};
7ec1255c 308 tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e --board ${TEST_PY_BD} ${OVERRIDE}
9e0f5eab
HS
309 cp ~/grub_x86.efi ${UBOOT_TRAVIS_BUILD_DIR}/
310 cp ~/grub_x64.efi ${UBOOT_TRAVIS_BUILD_DIR}/
311 cp /opt/grub/grubriscv64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_riscv64.efi
9e0f5eab
HS
312 cp /opt/grub/grubaa64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm64.efi
313 cp /opt/grub/grubarm.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm.efi
0e60b3a7
BM
314 # create sdcard / spi-nor images for sifive unleashed using genimage
315 if [[ "${TEST_PY_BD}" == "sifive_unleashed" ]]; then
316 mkdir -p root;
317 cp ${UBOOT_TRAVIS_BUILD_DIR}/spl/u-boot-spl.bin .;
318 cp ${UBOOT_TRAVIS_BUILD_DIR}/u-boot.itb .;
319 rm -rf tmp;
320 genimage --inputpath . --config board/sifive/unleashed/genimage_sdcard.cfg;
321 cp images/sdcard.img ${UBOOT_TRAVIS_BUILD_DIR}/;
322 rm -rf tmp;
323 genimage --inputpath . --config board/sifive/unleashed/genimage_spi-nor.cfg;
324 cp images/spi-nor.img ${UBOOT_TRAVIS_BUILD_DIR}/;
325 fi
5d80a1a9
TR
326 virtualenv -p /usr/bin/python3 /tmp/venv
327 . /tmp/venv/bin/activate
328 pip install -r test/py/requirements.txt
5d6f0535 329 export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
bf275222 330 export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
4080d097 331 # "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
f3092473 332 ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
bf275222 333 # the below corresponds to .gitlab-ci.yml "after_script"
6049d516 334 rm -rf /tmp/uboot-test-hooks /tmp/venv
bf275222
BM
335 EOF
336 cat test.sh
337 # make current directory writeable to uboot user inside the container
338 # as sandbox testing need create files like spi flash images, etc.
339 # (TODO: clean up this in the future)
340 chmod 777 .
e22ec9c6
ANY
341 # Filesystem tests need extra docker args to run
342 set --
343 if [[ "${TEST_PY_BD}" == "sandbox" ]]; then
344 # mount -o loop needs the loop devices
345 if modprobe loop; then
346 for d in $(find /dev -maxdepth 1 -name 'loop*'); do
347 set -- "$@" --device $d:$d
348 done
349 fi
350 # Needed for mount syscall (for guestmount as well)
351 set -- "$@" --cap-add SYS_ADMIN
352 # Default apparmor profile denies mounts
353 set -- "$@" --security-opt apparmor=unconfined
354 fi
1aaaf60d 355 # Some tests using libguestfs-tools need the fuse device to run
e22ec9c6 356 docker run "$@" --device /dev/fuse:/dev/fuse -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh
bf275222
BM
357
358 - job: build_the_world
359 displayName: 'Build the World'
360 pool:
361 vmImage: $(ubuntu_vm)
362 strategy:
363 # Use almost the same target division in .travis.yml, only merged
364 # 4 small build jobs (arc/microblaze/nds32/xtensa) into one.
365 matrix:
366 arc_microblaze_nds32_xtensa:
367 BUILDMAN: "arc microblaze nds32 xtensa"
368 arm11_arm7_arm920t_arm946es:
369 BUILDMAN: "arm11 arm7 arm920t arm946es"
370 arm926ejs:
5bda1878 371 BUILDMAN: "arm926ejs -x freescale,siemens,at91,kirkwood,omap"
bf275222
BM
372 at91_non_armv7:
373 BUILDMAN: "at91 -x armv7"
374 at91_non_arm926ejs:
375 BUILDMAN: "at91 -x arm926ejs"
376 boundary_engicam_toradex:
377 BUILDMAN: "boundary engicam toradex"
378 arm_bcm:
379 BUILDMAN: "bcm -x mips"
380 nxp_arm32:
af771625
HS
381 BUILDMAN: "freescale -x powerpc,m68k,aarch64,ls101,ls102,ls104,ls108,ls20,lx216"
382 nxp_ls101x:
383 BUILDMAN: "freescale&ls101"
384 nxp_ls102x:
385 BUILDMAN: "freescale&ls102"
386 nxp_ls104x:
387 BUILDMAN: "freescale&ls104"
388 nxp_ls108x:
389 BUILDMAN: "freescale&ls108"
390 nxp_ls20xx:
391 BUILDMAN: "freescale&ls20"
392 nxp_lx216x:
393 BUILDMAN: "freescale&lx216"
bf275222
BM
394 imx6:
395 BUILDMAN: "mx6 -x boundary,engicam,freescale,technexion,toradex"
396 imx:
397 BUILDMAN: "mx -x mx6,freescale,technexion,toradex"
5ea605ce
TR
398 imx8:
399 BUILDMAN: "imx8"
bf275222
BM
400 keystone2_keystone3:
401 BUILDMAN: "k2 k3"
402 samsung_socfpga:
403 BUILDMAN: "samsung socfpga"
bf275222
BM
404 sun4i:
405 BUILDMAN: "sun4i"
406 sun5i:
407 BUILDMAN: "sun5i"
408 sun6i:
409 BUILDMAN: "sun6i"
410 sun7i:
411 BUILDMAN: "sun7i"
412 sun8i_32bit:
413 BUILDMAN: "sun8i&armv7"
414 sun8i_64bit:
415 BUILDMAN: "sun8i&aarch64"
416 sun9i:
417 BUILDMAN: "sun9i"
418 sun50i:
419 BUILDMAN: "sun50i"
420 arm_catch_all:
31289c7d 421 BUILDMAN: "arm -x arm11,arm7,arm9,aarch64,at91,bcm,freescale,kirkwood,mvebu,renesas,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,rk,toradex,socfpga,k2,k3,zynq"
bf275222
BM
422 sandbox_x86:
423 BUILDMAN: "sandbox x86"
424 technexion:
425 BUILDMAN: "technexion"
426 kirkwood:
427 BUILDMAN: "kirkwood"
428 mvebu:
429 BUILDMAN: "mvebu"
430 m68k:
431 BUILDMAN: "m68k"
432 mips:
433 BUILDMAN: "mips"
434 non_fsl_ppc:
435 BUILDMAN: "powerpc -x freescale"
436 mpc85xx_freescale:
4a753fbc 437 BUILDMAN: "mpc85xx&freescale -x t208xrdb -x t102* -x p1_p2_rdb_pc -x p1010rdb -x corenet_ds -x bsc91*"
bf275222
BM
438 t208xrdb_corenet_ds:
439 BUILDMAN: "t208xrdb corenet_ds"
440 fsl_ppc:
4a753fbc 441 BUILDMAN: "mpc83xx&freescale"
bf275222
BM
442 t102x:
443 BUILDMAN: "t102*"
444 p1_p2_rdb_pc:
445 BUILDMAN: "p1_p2_rdb_pc"
446 p1010rdb_bsc91:
447 BUILDMAN: "p1010rdb bsc91"
448 siemens:
449 BUILDMAN: "siemens"
450 tegra:
451 BUILDMAN: "tegra -x toradex"
452 am33xx_no_siemens:
453 BUILDMAN: "am33xx -x siemens"
454 omap:
455 BUILDMAN: "omap"
456 uniphier:
457 BUILDMAN: "uniphier"
458 aarch64_catch_all:
5ea605ce 459 BUILDMAN: "aarch64 -x bcm,imx8,k3,tegra,ls1,ls2,lx216,mvebu,uniphier,renesas,sunxi,samsung,socfpga,rk,versal,zynq"
bf275222 460 rockchip:
2d4cd12d 461 BUILDMAN: "rk"
31289c7d
TR
462 renesas:
463 BUILDMAN: "renesas"
bf275222
BM
464 zynq:
465 BUILDMAN: "zynq&armv7"
466 zynqmp_versal:
467 BUILDMAN: "versal|zynqmp&aarch64"
468 riscv:
469 BUILDMAN: "riscv"
470 steps:
471 - script: |
472 cat << EOF > build.sh
473 set -ex
474 cd ${WORK_DIR}
475 # make environment variables available as tests are running inside a container
476 export BUILDMAN="${BUILDMAN}"
477 EOF
478 cat << "EOF" >> build.sh
479 if [[ "${BUILDMAN}" != "" ]]; then
480 ret=0;
aa8544e0 481 tools/buildman/buildman -o /tmp -P -E -W ${BUILDMAN} ${OVERRIDE} || ret=$?;
dd5c954e 482 if [[ $ret -ne 0 ]]; then
b52f5a19 483 tools/buildman/buildman -o /tmp -seP ${BUILDMAN};
bf275222
BM
484 exit $ret;
485 fi;
486 fi
487 EOF
488 cat build.sh
489 docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh
This page took 0.171043 seconds and 4 git commands to generate.