.gitlab-ci.yml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. # Running the runtime tests for every push is too much, so limit to
  59. # explicit triggers through the API.
  60. only:
  61. - triggers
  62. - tags
  63. # Keep build directories so the rootfs can be an artifact of the job. The
  64. # runner will clean up those files for us.
  65. # Multiply every emulator timeout by 10 to avoid sporadic failures in
  66. # elastic runners.
  67. script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 ${CI_JOB_NAME}
  68. artifacts:
  69. when: always
  70. expire_in: 2 weeks
  71. paths:
  72. - test-output/*.log
  73. - test-output/*/.config
  74. - test-output/*/images/*
  75. acmesystems_aria_g25_128mb_defconfig: *defconfig
  76. acmesystems_aria_g25_256mb_defconfig: *defconfig
  77. acmesystems_arietta_g25_128mb_defconfig: *defconfig
  78. acmesystems_arietta_g25_256mb_defconfig: *defconfig
  79. amarula_vyasa_rk3288_defconfig: *defconfig
  80. arcturus_ucls1012a_defconfig: *defconfig
  81. arcturus_ucp1020_defconfig: *defconfig
  82. arm_foundationv8_defconfig: *defconfig
  83. arm_juno_defconfig: *defconfig
  84. armadeus_apf27_defconfig: *defconfig
  85. armadeus_apf28_defconfig: *defconfig
  86. armadeus_apf51_defconfig: *defconfig
  87. asus_tinker_rk3288_defconfig: *defconfig
  88. at91sam9260eknf_defconfig: *defconfig
  89. at91sam9g20dfc_defconfig: *defconfig
  90. at91sam9g45m10ek_defconfig: *defconfig
  91. at91sam9rlek_defconfig: *defconfig
  92. at91sam9x5ek_defconfig: *defconfig
  93. at91sam9x5ek_dev_defconfig: *defconfig
  94. at91sam9x5ek_mmc_defconfig: *defconfig
  95. at91sam9x5ek_mmc_dev_defconfig: *defconfig
  96. atmel_sama5d27_som1_ek_mmc_dev_defconfig: *defconfig
  97. atmel_sama5d2_xplained_mmc_defconfig: *defconfig
  98. atmel_sama5d2_xplained_mmc_dev_defconfig: *defconfig
  99. atmel_sama5d3_xplained_defconfig: *defconfig
  100. atmel_sama5d3_xplained_dev_defconfig: *defconfig
  101. atmel_sama5d3_xplained_mmc_defconfig: *defconfig
  102. atmel_sama5d3_xplained_mmc_dev_defconfig: *defconfig
  103. atmel_sama5d3xek_defconfig: *defconfig
  104. atmel_sama5d4_xplained_defconfig: *defconfig
  105. atmel_sama5d4_xplained_dev_defconfig: *defconfig
  106. atmel_sama5d4_xplained_mmc_defconfig: *defconfig
  107. atmel_sama5d4_xplained_mmc_dev_defconfig: *defconfig
  108. bananapi_m1_defconfig: *defconfig
  109. bananapi_m2_plus_defconfig: *defconfig
  110. bananapi_m64_defconfig: *defconfig
  111. bananapro_defconfig: *defconfig
  112. beagleboardx15_defconfig: *defconfig
  113. beaglebone_defconfig: *defconfig
  114. beaglebone_qt5_defconfig: *defconfig
  115. chromebook_snow_defconfig: *defconfig
  116. ci20_defconfig: *defconfig
  117. csky_gx6605s_defconfig: *defconfig
  118. cubieboard2_defconfig: *defconfig
  119. engicam_imx6qdl_icore_defconfig: *defconfig
  120. engicam_imx6qdl_icore_qt5_defconfig: *defconfig
  121. engicam_imx6qdl_icore_rqs_defconfig: *defconfig
  122. engicam_imx6ul_geam_defconfig: *defconfig
  123. engicam_imx6ul_isiot_defconfig: *defconfig
  124. freescale_imx28evk_defconfig: *defconfig
  125. freescale_imx6dlsabreauto_defconfig: *defconfig
  126. freescale_imx6dlsabresd_defconfig: *defconfig
  127. freescale_imx6qsabreauto_defconfig: *defconfig
  128. freescale_imx6qsabresd_defconfig: *defconfig
  129. freescale_imx6sxsabresd_defconfig: *defconfig
  130. freescale_imx7dsabresd_defconfig: *defconfig
  131. freescale_imx8mqevk_defconfig: *defconfig
  132. freescale_p1025twr_defconfig: *defconfig
  133. freescale_t1040d4rdb_defconfig: *defconfig
  134. friendlyarm_nanopi_a64_defconfig: *defconfig
  135. friendlyarm_nanopi_neo2_defconfig: *defconfig
  136. galileo_defconfig: *defconfig
  137. grinn_chiliboard_defconfig: *defconfig
  138. grinn_liteboard_defconfig: *defconfig
  139. imx23evk_defconfig: *defconfig
  140. imx6-sabreauto_defconfig: *defconfig
  141. imx6-sabresd_defconfig: *defconfig
  142. imx6-sabresd_qt5_defconfig: *defconfig
  143. imx6slevk_defconfig: *defconfig
  144. imx6sx-sdb_defconfig: *defconfig
  145. imx6ulevk_defconfig: *defconfig
  146. imx6ulpico_defconfig: *defconfig
  147. imx7d-sdb_defconfig: *defconfig
  148. imx7dpico_defconfig: *defconfig
  149. lego_ev3_defconfig: *defconfig
  150. linksprite_pcduino_defconfig: *defconfig
  151. minnowboard_max-graphical_defconfig: *defconfig
  152. minnowboard_max_defconfig: *defconfig
  153. mx25pdk_defconfig: *defconfig
  154. mx51evk_defconfig: *defconfig
  155. mx53loco_defconfig: *defconfig
  156. mx6cubox_defconfig: *defconfig
  157. mx6sx_udoo_neo_defconfig: *defconfig
  158. mx6udoo_defconfig: *defconfig
  159. nanopi_m1_defconfig: *defconfig
  160. nanopi_m1_plus_defconfig: *defconfig
  161. nanopi_neo_defconfig: *defconfig
  162. nexbox_a95x_defconfig: *defconfig
  163. nitrogen6sx_defconfig: *defconfig
  164. nitrogen6x_defconfig: *defconfig
  165. nitrogen7_defconfig: *defconfig
  166. nitrogen8m_defconfig: *defconfig
  167. odroidc2_defconfig: *defconfig
  168. olimex_a10_olinuxino_lime_defconfig: *defconfig
  169. olimex_a13_olinuxino_defconfig: *defconfig
  170. olimex_a20_olinuxino_lime2_defconfig: *defconfig
  171. olimex_a20_olinuxino_lime_defconfig: *defconfig
  172. olimex_a20_olinuxino_lime_mali_defconfig: *defconfig
  173. olimex_a20_olinuxino_micro_defconfig: *defconfig
  174. olimex_a64_olinuxino_defconfig: *defconfig
  175. olimex_imx233_olinuxino_defconfig: *defconfig
  176. openblocks_a6_defconfig: *defconfig
  177. orangepi_lite_defconfig: *defconfig
  178. orangepi_one_defconfig: *defconfig
  179. orangepi_pc2_defconfig: *defconfig
  180. orangepi_pc_defconfig: *defconfig
  181. orangepi_pc_plus_defconfig: *defconfig
  182. orangepi_plus_defconfig: *defconfig
  183. orangepi_prime_defconfig: *defconfig
  184. orangepi_win_defconfig: *defconfig
  185. orangepi_zero_defconfig: *defconfig
  186. orangepi_zero_plus2_defconfig: *defconfig
  187. pandaboard_defconfig: *defconfig
  188. pc_x86_64_bios_defconfig: *defconfig
  189. pc_x86_64_efi_defconfig: *defconfig
  190. pine64_defconfig: *defconfig
  191. pine64_sopine_defconfig: *defconfig
  192. qemu_aarch64_virt_defconfig: *defconfig
  193. qemu_arm_versatile_defconfig: *defconfig
  194. qemu_arm_versatile_nommu_defconfig: *defconfig
  195. qemu_arm_vexpress_defconfig: *defconfig
  196. qemu_m68k_mcf5208_defconfig: *defconfig
  197. qemu_m68k_q800_defconfig: *defconfig
  198. qemu_microblazebe_mmu_defconfig: *defconfig
  199. qemu_microblazeel_mmu_defconfig: *defconfig
  200. qemu_mips32r2_malta_defconfig: *defconfig
  201. qemu_mips32r2el_malta_defconfig: *defconfig
  202. qemu_mips32r6_malta_defconfig: *defconfig
  203. qemu_mips32r6el_malta_defconfig: *defconfig
  204. qemu_mips64_malta_defconfig: *defconfig
  205. qemu_mips64el_malta_defconfig: *defconfig
  206. qemu_mips64r6_malta_defconfig: *defconfig
  207. qemu_mips64r6el_malta_defconfig: *defconfig
  208. qemu_nios2_10m50_defconfig: *defconfig
  209. qemu_or1k_defconfig: *defconfig
  210. qemu_ppc64_e5500_defconfig: *defconfig
  211. qemu_ppc64_pseries_defconfig: *defconfig
  212. qemu_ppc64le_pseries_defconfig: *defconfig
  213. qemu_ppc_g3beige_defconfig: *defconfig
  214. qemu_ppc_mpc8544ds_defconfig: *defconfig
  215. qemu_ppc_virtex_ml507_defconfig: *defconfig
  216. qemu_sh4_r2d_defconfig: *defconfig
  217. qemu_sh4eb_r2d_defconfig: *defconfig
  218. qemu_sparc64_sun4u_defconfig: *defconfig
  219. qemu_sparc_ss10_defconfig: *defconfig
  220. qemu_x86_64_defconfig: *defconfig
  221. qemu_x86_defconfig: *defconfig
  222. qemu_xtensa_lx60_defconfig: *defconfig
  223. qemu_xtensa_lx60_nommu_defconfig: *defconfig
  224. raspberrypi0_defconfig: *defconfig
  225. raspberrypi0w_defconfig: *defconfig
  226. raspberrypi2_defconfig: *defconfig
  227. raspberrypi3_64_defconfig: *defconfig
  228. raspberrypi3_defconfig: *defconfig
  229. raspberrypi3_qt5we_defconfig: *defconfig
  230. raspberrypi_defconfig: *defconfig
  231. roseapplepi_defconfig: *defconfig
  232. s6lx9_microboard_defconfig: *defconfig
  233. sheevaplug_defconfig: *defconfig
  234. snps_aarch64_vdk_defconfig: *defconfig
  235. snps_arc700_axs101_defconfig: *defconfig
  236. snps_archs38_axs103_defconfig: *defconfig
  237. snps_archs38_haps_defconfig: *defconfig
  238. snps_archs38_hsdk_defconfig: *defconfig
  239. snps_archs38_vdk_defconfig: *defconfig
  240. socrates_cyclone5_defconfig: *defconfig
  241. solidrun_clearfog_defconfig: *defconfig
  242. solidrun_macchiatobin_mainline_defconfig: *defconfig
  243. solidrun_macchiatobin_marvell_defconfig: *defconfig
  244. stm32f429_disco_defconfig: *defconfig
  245. stm32f469_disco_defconfig: *defconfig
  246. toradex_apalis_imx6_defconfig: *defconfig
  247. ts4800_defconfig: *defconfig
  248. ts4900_defconfig: *defconfig
  249. ts5500_defconfig: *defconfig
  250. ts7680_defconfig: *defconfig
  251. wandboard_defconfig: *defconfig
  252. warp7_defconfig: *defconfig
  253. warpboard_defconfig: *defconfig
  254. zynq_microzed_defconfig: *defconfig
  255. zynq_zc706_defconfig: *defconfig
  256. zynq_zed_defconfig: *defconfig
  257. zynq_zybo_defconfig: *defconfig
  258. zynqmp_zcu106_defconfig: *defconfig
  259. tests.boot.test_atf.TestATFAllwinner: *runtime_test
  260. tests.boot.test_atf.TestATFMarvell: *runtime_test
  261. tests.boot.test_atf.TestATFVexpress: *runtime_test
  262. tests.core.test_file_capabilities.TestFileCapabilities: *runtime_test
  263. tests.core.test_post_scripts.TestPostScripts: *runtime_test
  264. tests.core.test_rootfs_overlay.TestRootfsOverlay: *runtime_test
  265. tests.core.test_timezone.TestGlibcAllTimezone: *runtime_test
  266. tests.core.test_timezone.TestGlibcNonDefaultLimitedTimezone: *runtime_test
  267. tests.core.test_timezone.TestNoTimezone: *runtime_test
  268. tests.fs.test_ext.TestExt2: *runtime_test
  269. tests.fs.test_ext.TestExt2r1: *runtime_test
  270. tests.fs.test_ext.TestExt3: *runtime_test
  271. tests.fs.test_ext.TestExt4: *runtime_test
  272. tests.fs.test_iso9660.TestIso9660Grub2External: *runtime_test
  273. tests.fs.test_iso9660.TestIso9660Grub2ExternalCompress: *runtime_test
  274. tests.fs.test_iso9660.TestIso9660Grub2Internal: *runtime_test
  275. tests.fs.test_iso9660.TestIso9660SyslinuxExternal: *runtime_test
  276. tests.fs.test_iso9660.TestIso9660SyslinuxExternalCompress: *runtime_test
  277. tests.fs.test_iso9660.TestIso9660SyslinuxInternal: *runtime_test
  278. tests.fs.test_jffs2.TestJffs2: *runtime_test
  279. tests.fs.test_squashfs.TestSquashfs: *runtime_test
  280. tests.fs.test_ubi.TestUbi: *runtime_test
  281. tests.fs.test_yaffs2.TestYaffs2: *runtime_test
  282. tests.init.test_busybox.TestInitSystemBusyboxRo: *runtime_test
  283. tests.init.test_busybox.TestInitSystemBusyboxRoNet: *runtime_test
  284. tests.init.test_busybox.TestInitSystemBusyboxRw: *runtime_test
  285. tests.init.test_busybox.TestInitSystemBusyboxRwNet: *runtime_test
  286. tests.init.test_none.TestInitSystemNone: *runtime_test
  287. tests.init.test_systemd.TestInitSystemSystemdRoFull: *runtime_test
  288. tests.init.test_systemd.TestInitSystemSystemdRoIfupdown: *runtime_test
  289. tests.init.test_systemd.TestInitSystemSystemdRoNetworkd: *runtime_test
  290. tests.init.test_systemd.TestInitSystemSystemdRwFull: *runtime_test
  291. tests.init.test_systemd.TestInitSystemSystemdRwIfupdown: *runtime_test
  292. tests.init.test_systemd.TestInitSystemSystemdRwNetworkd: *runtime_test
  293. tests.package.test_dropbear.TestDropbear: *runtime_test
  294. tests.package.test_ipython.TestIPythonPy2: *runtime_test
  295. tests.package.test_ipython.TestIPythonPy3: *runtime_test
  296. tests.package.test_python.TestPython2: *runtime_test
  297. tests.package.test_python.TestPython3: *runtime_test
  298. tests.package.test_python_cryptography.TestPythonPy2Cryptography: *runtime_test
  299. tests.package.test_python_cryptography.TestPythonPy3Cryptography: *runtime_test
  300. tests.package.test_rust.TestRust: *runtime_test
  301. tests.package.test_rust.TestRustBin: *runtime_test
  302. tests.package.test_syslog_ng.TestSyslogNg: *runtime_test
  303. tests.toolchain.test_external.TestExternalToolchainBuildrootMusl: *runtime_test
  304. tests.toolchain.test_external.TestExternalToolchainBuildrootuClibc: *runtime_test
  305. tests.toolchain.test_external.TestExternalToolchainCCache: *runtime_test
  306. tests.toolchain.test_external.TestExternalToolchainCtngMusl: *runtime_test
  307. tests.toolchain.test_external.TestExternalToolchainLinaroArm: *runtime_test
  308. tests.toolchain.test_external.TestExternalToolchainSourceryArmv4: *runtime_test
  309. tests.toolchain.test_external.TestExternalToolchainSourceryArmv5: *runtime_test
  310. tests.toolchain.test_external.TestExternalToolchainSourceryArmv7: *runtime_test