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".
10 - dpkg --add-architecture i386
11 # The container has no package lists, so need to update first
13 - apt-get install -y -qq --no-install-recommends
14 build-essential locales bc ca-certificates file rsync gcc-multilib
15 git bzr cvs mercurial subversion libc6:i386 unzip wget cpio
16 # To be able to generate a toolchain with locales, enable one UTF-8 locale
17 - sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen
18 - /usr/sbin/locale-gen
20 .defconfig_script: &defconfig_script
21 - echo 'Configure Buildroot'
22 - make ${CI_BUILD_NAME}
23 - echo 'Build buildroot'
25 make > >(tee build.log |grep '>>>') 2>&1 || {
26 echo 'Failed build last output'
33 - mv .gitlab-ci.yml .gitlab-ci.yml.orig
35 - diff -u .gitlab-ci.yml.orig .gitlab-ci.yml
37 .defconfig: &defconfig
38 # Running the defconfigs for every push is too much, so limit to
39 # explicit triggers through the API.
43 script: *defconfig_script
50 - output/build/build-time.log
51 - output/build/packages-file-list.txt