.gitlab-ci.yml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. # Configuration for Gitlab-CI.
  2. # Builds appear on https://gitlab.com/buildroot.org/buildroot/pipelines
  3. # The .gitlab-ci.yml file is generated from .gitlab-ci.yml.in.
  4. # It needs to be regenerated every time a defconfig is added, using
  5. # "make .gitlab-ci.yml".
  6. image: buildroot/base:20180318.1724
  7. .defconfig_script: &defconfig_script
  8. - echo 'Configure Buildroot'
  9. - make ${CI_JOB_NAME}
  10. - echo 'Build buildroot'
  11. - |
  12. make > >(tee build.log |grep '>>>') 2>&1 || {
  13. echo 'Failed build last output'
  14. tail -200 build.log
  15. exit 1
  16. }
  17. check-gitlab-ci.yml:
  18. script:
  19. - mv .gitlab-ci.yml .gitlab-ci.yml.orig
  20. - make .gitlab-ci.yml
  21. - diff -u .gitlab-ci.yml.orig .gitlab-ci.yml
  22. check-DEVELOPERS:
  23. # get-developers should print just "No action specified"; if it prints
  24. # anything else, it's a parse error.
  25. # The initial ! is removed by YAML so we need to quote it.
  26. script:
  27. - "! utils/get-developers | grep -v 'No action specified'"
  28. check-flake8:
  29. before_script:
  30. # Help flake8 to find the Python files without .py extension.
  31. - find * -type f -name '*.py' > files.txt
  32. - find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
  33. - sort -u files.txt | tee files.processed
  34. script:
  35. - python -m flake8 --statistics --count $(cat files.processed)
  36. after_script:
  37. - wc -l files.processed
  38. check-package:
  39. script:
  40. - find . -type f \( -name '*.mk' -o -name '*.hash' -o -name 'Config.*' \)
  41. -exec ./utils/check-package {} +
  42. .defconfig: &defconfig
  43. # Running the defconfigs for every push is too much, so limit to
  44. # explicit triggers through the API.
  45. only:
  46. - triggers
  47. - tags
  48. script: *defconfig_script
  49. artifacts:
  50. when: always
  51. expire_in: 2 weeks
  52. paths:
  53. - build.log
  54. - output/images/
  55. - output/build/build-time.log
  56. - output/build/packages-file-list.txt
  57. .runtime_test: &runtime_test
  58. # Keep build directories so the rootfs can be an artifact of the job. The
  59. # runner will clean up those files for us.
  60. # Multiply every emulator timeout by 10 to avoid sporadic failures in
  61. # elastic runners.
  62. script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 ${CI_JOB_NAME}
  63. artifacts:
  64. when: always
  65. expire_in: 2 weeks
  66. paths:
  67. - test-output/*.log
  68. - test-output/*/.config
  69. - test-output/*/images/*
  70. acmesystems_aria_g25_128mb_defconfig: *defconfig
  71. acmesystems_aria_g25_256mb_defconfig: *defconfig
  72. acmesystems_arietta_g25_128mb_defconfig: *defconfig
  73. acmesystems_arietta_g25_256mb_defconfig: *defconfig
  74. amarula_vyasa_rk3288_defconfig: *defconfig
  75. arcturus_ucls1012a_defconfig: *defconfig
  76. arcturus_ucp1020_defconfig: *defconfig
  77. arm_foundationv8_defconfig: *defconfig
  78. arm_juno_defconfig: *defconfig
  79. armadeus_apf27_defconfig: *defconfig
  80. armadeus_apf28_defconfig: *defconfig
  81. armadeus_apf51_defconfig: *defconfig
  82. asus_tinker_rk3288_defconfig: *defconfig
  83. at91sam9260eknf_defconfig: *defconfig
  84. at91sam9g20dfc_defconfig: *defconfig
  85. at91sam9g45m10ek_defconfig: *defconfig
  86. at91sam9rlek_defconfig: *defconfig
  87. at91sam9x5ek_defconfig: *defconfig
  88. at91sam9x5ek_dev_defconfig: *defconfig
  89. at91sam9x5ek_mmc_defconfig: *defconfig
  90. at91sam9x5ek_mmc_dev_defconfig: *defconfig
  91. atmel_sama5d27_som1_ek_mmc_dev_defconfig: *defconfig
  92. atmel_sama5d2_xplained_mmc_defconfig: *defconfig
  93. atmel_sama5d2_xplained_mmc_dev_defconfig: *defconfig
  94. atmel_sama5d3_xplained_defconfig: *defconfig
  95. atmel_sama5d3_xplained_dev_defconfig: *defconfig
  96. atmel_sama5d3_xplained_mmc_defconfig: *defconfig
  97. atmel_sama5d3_xplained_mmc_dev_defconfig: *defconfig
  98. atmel_sama5d3xek_defconfig: *defconfig
  99. atmel_sama5d4_xplained_defconfig: *defconfig
  100. atmel_sama5d4_xplained_dev_defconfig: *defconfig
  101. atmel_sama5d4_xplained_mmc_defconfig: *defconfig
  102. atmel_sama5d4_xplained_mmc_dev_defconfig: *defconfig
  103. bananapi_m1_defconfig: *defconfig
  104. bananapi_m2_plus_defconfig: *defconfig
  105. bananapi_m64_defconfig: *defconfig
  106. bananapro_defconfig: *defconfig
  107. beagleboardx15_defconfig: *defconfig
  108. beaglebone_defconfig: *defconfig
  109. beaglebone_qt5_defconfig: *defconfig
  110. chromebook_snow_defconfig: *defconfig
  111. ci20_defconfig: *defconfig
  112. csky_gx6605s_defconfig: *defconfig
  113. cubieboard2_defconfig: *defconfig
  114. engicam_imx6qdl_icore_defconfig: *defconfig
  115. engicam_imx6qdl_icore_qt5_defconfig: *defconfig
  116. engicam_imx6qdl_icore_rqs_defconfig: *defconfig
  117. engicam_imx6ul_geam_defconfig: *defconfig
  118. engicam_imx6ul_isiot_defconfig: *defconfig
  119. freescale_imx28evk_defconfig: *defconfig
  120. freescale_imx31_3stack_defconfig: *defconfig
  121. freescale_imx6dlsabreauto_defconfig: *defconfig
  122. freescale_imx6dlsabresd_defconfig: *defconfig
  123. freescale_imx6qsabreauto_defconfig: *defconfig
  124. freescale_imx6qsabresd_defconfig: *defconfig
  125. freescale_imx6sololiteevk_defconfig: *defconfig
  126. freescale_imx6sxsabresd_defconfig: *defconfig
  127. freescale_imx6ulevk_defconfig: *defconfig
  128. freescale_imx7dsabresd_defconfig: *defconfig
  129. freescale_imx8mqevk_defconfig: *defconfig
  130. freescale_p1025twr_defconfig: *defconfig
  131. freescale_t1040d4rdb_defconfig: *defconfig
  132. friendlyarm_nanopi_a64_defconfig: *defconfig
  133. friendlyarm_nanopi_neo2_defconfig: *defconfig
  134. galileo_defconfig: *defconfig
  135. grinn_chiliboard_defconfig: *defconfig
  136. grinn_liteboard_defconfig: *defconfig
  137. imx23evk_defconfig: *defconfig
  138. imx6-sabreauto_defconfig: *defconfig
  139. imx6-sabresd_defconfig: *defconfig
  140. imx6-sabresd_qt5_defconfig: *defconfig
  141. imx6slevk_defconfig: *defconfig
  142. imx6sx-sdb_defconfig: *defconfig
  143. imx6ulevk_defconfig: *defconfig
  144. imx6ulpico_defconfig: *defconfig
  145. imx7dpico_defconfig: *defconfig
  146. lego_ev3_defconfig: *defconfig
  147. linksprite_pcduino_defconfig: *defconfig
  148. minnowboard_max-graphical_defconfig: *defconfig
  149. minnowboard_max_defconfig: *defconfig
  150. mx25pdk_defconfig: *defconfig
  151. mx51evk_defconfig: *defconfig
  152. mx53loco_defconfig: *defconfig
  153. mx6cubox_defconfig: *defconfig
  154. mx6sx_udoo_neo_defconfig: *defconfig
  155. mx6udoo_defconfig: *defconfig
  156. nanopi_m1_defconfig: *defconfig
  157. nanopi_m1_plus_defconfig: *defconfig
  158. nanopi_neo_defconfig: *defconfig
  159. nexbox_a95x_defconfig: *defconfig
  160. nitrogen6sx_defconfig: *defconfig
  161. nitrogen6x_defconfig: *defconfig
  162. nitrogen7_defconfig: *defconfig
  163. odroidc2_defconfig: *defconfig
  164. olimex_a13_olinuxino_defconfig: *defconfig
  165. olimex_a20_olinuxino_lime2_defconfig: *defconfig
  166. olimex_a20_olinuxino_lime_defconfig: *defconfig
  167. olimex_a20_olinuxino_lime_mali_defconfig: *defconfig
  168. olimex_a20_olinuxino_micro_defconfig: *defconfig
  169. olimex_a64_olinuxino_defconfig: *defconfig
  170. olimex_imx233_olinuxino_defconfig: *defconfig
  171. openblocks_a6_defconfig: *defconfig
  172. orangepi_lite_defconfig: *defconfig
  173. orangepi_one_defconfig: *defconfig
  174. orangepi_pc2_defconfig: *defconfig
  175. orangepi_pc_defconfig: *defconfig
  176. orangepi_pc_plus_defconfig: *defconfig
  177. orangepi_plus_defconfig: *defconfig
  178. orangepi_prime_defconfig: *defconfig
  179. orangepi_win_defconfig: *defconfig
  180. orangepi_zero_defconfig: *defconfig
  181. orangepi_zero_plus2_defconfig: *defconfig
  182. pandaboard_defconfig: *defconfig
  183. pc_x86_64_bios_defconfig: *defconfig
  184. pc_x86_64_efi_defconfig: *defconfig
  185. pine64_defconfig: *defconfig
  186. pine64_sopine_defconfig: *defconfig
  187. qemu_aarch64_virt_defconfig: *defconfig
  188. qemu_arm_versatile_defconfig: *defconfig
  189. qemu_arm_versatile_nommu_defconfig: *defconfig
  190. qemu_arm_vexpress_defconfig: *defconfig
  191. qemu_m68k_mcf5208_defconfig: *defconfig
  192. qemu_m68k_q800_defconfig: *defconfig
  193. qemu_microblazebe_mmu_defconfig: *defconfig
  194. qemu_microblazeel_mmu_defconfig: *defconfig
  195. qemu_mips32r2_malta_defconfig: *defconfig
  196. qemu_mips32r2el_malta_defconfig: *defconfig
  197. qemu_mips32r6_malta_defconfig: *defconfig
  198. qemu_mips32r6el_malta_defconfig: *defconfig
  199. qemu_mips64_malta_defconfig: *defconfig
  200. qemu_mips64el_malta_defconfig: *defconfig
  201. qemu_mips64r6_malta_defconfig: *defconfig
  202. qemu_mips64r6el_malta_defconfig: *defconfig
  203. qemu_nios2_10m50_defconfig: *defconfig
  204. qemu_or1k_defconfig: *defconfig
  205. qemu_ppc64_e5500_defconfig: *defconfig
  206. qemu_ppc64_pseries_defconfig: *defconfig
  207. qemu_ppc64le_pseries_defconfig: *defconfig
  208. qemu_ppc_g3beige_defconfig: *defconfig
  209. qemu_ppc_mpc8544ds_defconfig: *defconfig
  210. qemu_ppc_virtex_ml507_defconfig: *defconfig
  211. qemu_sh4_r2d_defconfig: *defconfig
  212. qemu_sh4eb_r2d_defconfig: *defconfig
  213. qemu_sparc64_sun4u_defconfig: *defconfig
  214. qemu_sparc_ss10_defconfig: *defconfig
  215. qemu_x86_64_defconfig: *defconfig
  216. qemu_x86_defconfig: *defconfig
  217. qemu_xtensa_lx60_defconfig: *defconfig
  218. qemu_xtensa_lx60_nommu_defconfig: *defconfig
  219. raspberrypi0_defconfig: *defconfig
  220. raspberrypi0w_defconfig: *defconfig
  221. raspberrypi2_defconfig: *defconfig
  222. raspberrypi3_64_defconfig: *defconfig
  223. raspberrypi3_defconfig: *defconfig
  224. raspberrypi3_qt5we_defconfig: *defconfig
  225. raspberrypi_defconfig: *defconfig
  226. roseapplepi_defconfig: *defconfig
  227. s6lx9_microboard_defconfig: *defconfig
  228. sheevaplug_defconfig: *defconfig
  229. snps_aarch64_vdk_defconfig: *defconfig
  230. snps_arc700_axs101_defconfig: *defconfig
  231. snps_archs38_axs103_defconfig: *defconfig
  232. snps_archs38_haps_defconfig: *defconfig
  233. snps_archs38_hsdk_defconfig: *defconfig
  234. snps_archs38_vdk_defconfig: *defconfig
  235. socrates_cyclone5_defconfig: *defconfig
  236. solidrun_clearfog_defconfig: *defconfig
  237. solidrun_macchiatobin_mainline_defconfig: *defconfig
  238. solidrun_macchiatobin_marvell_defconfig: *defconfig
  239. stm32f429_disco_defconfig: *defconfig
  240. stm32f469_disco_defconfig: *defconfig
  241. toradex_apalis_imx6_defconfig: *defconfig
  242. ts4800_defconfig: *defconfig
  243. ts4900_defconfig: *defconfig
  244. ts5500_defconfig: *defconfig
  245. ts7680_defconfig: *defconfig
  246. wandboard_defconfig: *defconfig
  247. warp7_defconfig: *defconfig
  248. warpboard_defconfig: *defconfig
  249. zynq_microzed_defconfig: *defconfig
  250. zynq_zc706_defconfig: *defconfig
  251. zynq_zed_defconfig: *defconfig
  252. zynq_zybo_defconfig: *defconfig
  253. tests.boot.test_atf.TestATFAllwinner: *runtime_test
  254. tests.boot.test_atf.TestATFMarvell: *runtime_test
  255. tests.boot.test_atf.TestATFVexpress: *runtime_test
  256. tests.core.test_post_scripts.TestPostScripts: *runtime_test
  257. tests.core.test_rootfs_overlay.TestRootfsOverlay: *runtime_test
  258. tests.core.test_timezone.TestGlibcAllTimezone: *runtime_test
  259. tests.core.test_timezone.TestGlibcNonDefaultLimitedTimezone: *runtime_test
  260. tests.core.test_timezone.TestNoTimezone: *runtime_test
  261. tests.fs.test_ext.TestExt2: *runtime_test
  262. tests.fs.test_ext.TestExt2r1: *runtime_test
  263. tests.fs.test_ext.TestExt3: *runtime_test
  264. tests.fs.test_ext.TestExt4: *runtime_test
  265. tests.fs.test_iso9660.TestIso9660Grub2External: *runtime_test
  266. tests.fs.test_iso9660.TestIso9660Grub2ExternalCompress: *runtime_test
  267. tests.fs.test_iso9660.TestIso9660Grub2Internal: *runtime_test
  268. tests.fs.test_iso9660.TestIso9660SyslinuxExternal: *runtime_test
  269. tests.fs.test_iso9660.TestIso9660SyslinuxExternalCompress: *runtime_test
  270. tests.fs.test_iso9660.TestIso9660SyslinuxInternal: *runtime_test
  271. tests.fs.test_jffs2.TestJffs2: *runtime_test
  272. tests.fs.test_squashfs.TestSquashfs: *runtime_test
  273. tests.fs.test_ubi.TestUbi: *runtime_test
  274. tests.fs.test_yaffs2.TestYaffs2: *runtime_test
  275. tests.init.test_busybox.TestInitSystemBusyboxRo: *runtime_test
  276. tests.init.test_busybox.TestInitSystemBusyboxRoNet: *runtime_test
  277. tests.init.test_busybox.TestInitSystemBusyboxRw: *runtime_test
  278. tests.init.test_busybox.TestInitSystemBusyboxRwNet: *runtime_test
  279. tests.init.test_none.TestInitSystemNone: *runtime_test
  280. tests.init.test_systemd.TestInitSystemSystemdRoFull: *runtime_test
  281. tests.init.test_systemd.TestInitSystemSystemdRoIfupdown: *runtime_test
  282. tests.init.test_systemd.TestInitSystemSystemdRoNetworkd: *runtime_test
  283. tests.init.test_systemd.TestInitSystemSystemdRwFull: *runtime_test
  284. tests.init.test_systemd.TestInitSystemSystemdRwIfupdown: *runtime_test
  285. tests.init.test_systemd.TestInitSystemSystemdRwNetworkd: *runtime_test
  286. tests.package.test_dropbear.TestDropbear: *runtime_test
  287. tests.package.test_ipython.TestIPythonPy2: *runtime_test
  288. tests.package.test_ipython.TestIPythonPy3: *runtime_test
  289. tests.package.test_python.TestPython2: *runtime_test
  290. tests.package.test_python.TestPython3: *runtime_test
  291. tests.package.test_python_cryptography.TestPythonPy2Cryptography: *runtime_test
  292. tests.package.test_python_cryptography.TestPythonPy3Cryptography: *runtime_test
  293. tests.package.test_rust.TestRust: *runtime_test
  294. tests.package.test_rust.TestRustBin: *runtime_test
  295. tests.package.test_syslog_ng.TestSyslogNg: *runtime_test
  296. tests.toolchain.test_external.TestExternalToolchainBuildrootMusl: *runtime_test
  297. tests.toolchain.test_external.TestExternalToolchainBuildrootuClibc: *runtime_test
  298. tests.toolchain.test_external.TestExternalToolchainCCache: *runtime_test
  299. tests.toolchain.test_external.TestExternalToolchainCtngMusl: *runtime_test
  300. tests.toolchain.test_external.TestExternalToolchainLinaroArm: *runtime_test
  301. tests.toolchain.test_external.TestExternalToolchainSourceryArmv4: *runtime_test
  302. tests.toolchain.test_external.TestExternalToolchainSourceryArmv5: *runtime_test
  303. tests.toolchain.test_external.TestExternalToolchainSourceryArmv7: *runtime_test