]>
Commit | Line | Data |
---|---|---|
6bc09ae3 | 1 | .check-DEVELOPERS_base: |
29ba13e5 AV |
2 | # get-developers should print just "No action specified"; if it prints |
3 | # anything else, it's a parse error. | |
4 | # The initial ! is removed by YAML so we need to quote it. | |
d498aa4a | 5 | script: |
29ba13e5 | 6 | - "! utils/get-developers | grep -v 'No action specified'" |
d498aa4a | 7 | |
6bc09ae3 | 8 | .check-flake8_base: |
1960eda2 | 9 | script: |
841ee767 | 10 | - make check-flake8 |
1960eda2 | 11 | |
6bc09ae3 | 12 | .check-package_base: |
b58059ad | 13 | script: |
1290241d | 14 | - make check-package |
b58059ad | 15 | |
2ed3b0a5 | 16 | .defconfig_check: |
05d75596 YM |
17 | before_script: |
18 | - DEFCONFIG_NAME=$(echo ${CI_JOB_NAME} | sed -e 's,_check$,,g') | |
2ed3b0a5 RN |
19 | script: |
20 | - echo "Configure Buildroot for ${DEFCONFIG_NAME}" | |
21 | - make ${DEFCONFIG_NAME} | |
22 | - support/scripts/check-dotconfig.py .config configs/${DEFCONFIG_NAME} | |
23 | artifacts: | |
24 | when: on_failure | |
25 | expire_in: 2 weeks | |
26 | paths: | |
27 | - .config | |
2ed3b0a5 | 28 | |
12904c03 | 29 | .defconfig_base: |
05d75596 YM |
30 | before_script: |
31 | - DEFCONFIG_NAME=${CI_JOB_NAME} | |
7405d793 | 32 | script: |
12904c03 RM |
33 | - echo "Configure Buildroot for ${DEFCONFIG_NAME}" |
34 | - make ${DEFCONFIG_NAME} | |
52b8ebc0 | 35 | - ./support/scripts/check-dotconfig.py .config ./configs/${DEFCONFIG_NAME} |
7405d793 RM |
36 | - echo 'Build buildroot' |
37 | - | | |
38 | make > >(tee build.log |grep '>>>') 2>&1 || { | |
39 | echo 'Failed build last output' | |
40 | tail -200 build.log | |
41 | exit 1 | |
42 | } | |
37b17717 JB |
43 | - | |
44 | ./support/scripts/boot-qemu-image.py "${DEFCONFIG_NAME}" > >(tee runtime-test.log) 2>&1 || { | |
45 | echo 'Failed runtime test last output' | |
46 | tail -200 runtime-test.log | |
47 | exit 1 | |
48 | } | |
4f863d77 AV |
49 | artifacts: |
50 | when: always | |
51 | expire_in: 2 weeks | |
52 | paths: | |
d163ba49 | 53 | - .config |
4f863d77 AV |
54 | - build.log |
55 | - output/images/ | |
56 | - output/build/build-time.log | |
57 | - output/build/packages-file-list.txt | |
d163ba49 | 58 | - output/build/*/.config |
37b17717 | 59 | - runtime-test.log |
12904c03 | 60 | |
12904c03 | 61 | .runtime_test_base: |
05d75596 YM |
62 | before_script: |
63 | - TEST_CASE_NAME=${CI_JOB_NAME} | |
af6b5830 RM |
64 | # Keep build directories so the rootfs can be an artifact of the job. The |
65 | # runner will clean up those files for us. | |
3cc7bd2d RM |
66 | # Multiply every emulator timeout by 10 to avoid sporadic failures in |
67 | # elastic runners. | |
12904c03 RM |
68 | script: |
69 | - echo "Starting runtime test ${TEST_CASE_NAME}" | |
70 | - ./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 ${TEST_CASE_NAME} | |
b287ea6f TP |
71 | artifacts: |
72 | when: always | |
73 | expire_in: 2 weeks | |
74 | paths: | |
75 | - test-output/*.log | |
2438d905 | 76 | - test-output/*/.config |
af6b5830 | 77 | - test-output/*/images/* |
12904c03 | 78 |