.gitlab-ci.yml.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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
  7. .defconfig_script: &defconfig_script
  8. - echo 'Configure Buildroot'
  9. - make ${CI_BUILD_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. .defconfig: &defconfig
  23. # Running the defconfigs for every push is too much, so limit to
  24. # explicit triggers through the API.
  25. only:
  26. - triggers
  27. - tags
  28. script: *defconfig_script
  29. artifacts:
  30. when: always
  31. expire_in: 2 weeks
  32. paths:
  33. - build.log
  34. - output/images/
  35. - output/build/build-time.log
  36. - output/build/packages-file-list.txt