]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - .gitlab-ci.yml.in
.gitlab-ci.yml: simplify (and fix) check-DEVELOPERS
[coffee/buildroot.git] / .gitlab-ci.yml.in
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
7 image: debian:stable
8
9 before_script:
10     - dpkg --add-architecture i386
11     # The container has no package lists, so need to update first
12     - apt-get update -qq
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
19
20 .defconfig_script: &defconfig_script
21     - echo 'Configure Buildroot'
22     - make ${CI_BUILD_NAME}
23     - echo 'Build buildroot'
24     - |
25         make > >(tee build.log |grep '>>>') 2>&1 || {
26             echo 'Failed build last output'
27             tail -200 build.log
28             exit 1
29         }
30
31 check-gitlab-ci.yml:
32     script:
33         - mv .gitlab-ci.yml .gitlab-ci.yml.orig
34         - make .gitlab-ci.yml
35         - diff -u .gitlab-ci.yml.orig .gitlab-ci.yml
36
37 check-DEVELOPERS:
38     script:
39         - ! utils/get-developers | grep -v 'No action specified'
40
41 .defconfig: &defconfig
42     # Running the defconfigs for every push is too much, so limit to
43     # explicit triggers through the API.
44     only:
45         - triggers
46         - tags
47     script: *defconfig_script
48     artifacts:
49         when: always
50         expire_in: 2 weeks
51         paths:
52             - build.log
53             - output/images/
54             - output/build/build-time.log
55             - output/build/packages-file-list.txt
56