blob: 3abf7d53139d417c20c3a53635d7572e6e133f3a [file] [log] [blame]
Arnout Vandecappelle4f863d72017-02-14 00:23:03 +01001# 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
Arnout Vandecappelled2a151c2017-07-02 18:24:59 +02007image: buildroot/base
Arnout Vandecappelle4f863d72017-02-14 00:23:03 +01008
9.defconfig_script: &defconfig_script
10 - echo 'Configure Buildroot'
11 - make ${CI_BUILD_NAME}
12 - echo 'Build buildroot'
13 - |
14 make > >(tee build.log |grep '>>>') 2>&1 || {
15 echo 'Failed build last output'
16 tail -200 build.log
17 exit 1
18 }
19
20check-gitlab-ci.yml:
21 script:
22 - mv .gitlab-ci.yml .gitlab-ci.yml.orig
23 - make .gitlab-ci.yml
24 - diff -u .gitlab-ci.yml.orig .gitlab-ci.yml
25
Arnout Vandecappelled498aa42017-06-30 18:42:53 +020026check-DEVELOPERS:
Arnout Vandecappelle29ba13e2017-07-01 20:22:27 +020027 # get-developers should print just "No action specified"; if it prints
28 # anything else, it's a parse error.
29 # The initial ! is removed by YAML so we need to quote it.
Arnout Vandecappelled498aa42017-06-30 18:42:53 +020030 script:
Arnout Vandecappelle29ba13e2017-07-01 20:22:27 +020031 - "! utils/get-developers | grep -v 'No action specified'"
Arnout Vandecappelled498aa42017-06-30 18:42:53 +020032
Arnout Vandecappelle4f863d72017-02-14 00:23:03 +010033.defconfig: &defconfig
34 # Running the defconfigs for every push is too much, so limit to
35 # explicit triggers through the API.
36 only:
37 - triggers
38 - tags
39 script: *defconfig_script
40 artifacts:
41 when: always
42 expire_in: 2 weeks
43 paths:
44 - build.log
45 - output/images/
46 - output/build/build-time.log
47 - output/build/packages-file-list.txt
48
Thomas Petazzonib287ea62017-07-02 18:13:22 +020049.runtime_test: &runtime_test
Ricardo Martincoskiaf6b5832017-07-30 01:49:43 -030050 # Keep build directories so the rootfs can be an artifact of the job. The
51 # runner will clean up those files for us.
Ricardo Martincoski3cc7bd22017-08-04 23:05:20 -030052 # Multiply every emulator timeout by 10 to avoid sporadic failures in
53 # elastic runners.
54 script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 ${CI_BUILD_NAME}
Thomas Petazzonib287ea62017-07-02 18:13:22 +020055 artifacts:
56 when: always
57 expire_in: 2 weeks
58 paths:
59 - test-output/*.log
Ricardo Martincoskiaf6b5832017-07-30 01:49:43 -030060 - test-output/*/images/*