.azure-pipelines.yml 18 KB

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