1 .native_build_job_template:
2 extends: .base_job_template
4 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
6 - JOBS=$(expr $(nproc) + 1)
8 - if test -n "$LD_JOBS";
10 scripts/git-submodule.sh update meson ;
14 - ../configure --enable-werror --disable-docs --enable-fdt=system
15 ${LD_JOBS:+--meson=git} ${TARGETS:+--target-list="$TARGETS"}
17 { cat config.log meson-logs/meson-log.txt && exit 1; }
18 - if test -n "$LD_JOBS";
20 ../meson/meson.py configure . -Dbackend_max_links="$LD_JOBS" ;
23 - if test -n "$MAKE_CHECK_ARGS";
25 make -j"$JOBS" $MAKE_CHECK_ARGS ;
28 .common_test_job_template:
29 extends: .base_job_template
31 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
33 - scripts/git-submodule.sh update
34 $(sed -n '/GIT_SUBMODULES=/ s/.*=// p' build/config-host.mak)
36 - find . -type f -exec touch {} +
37 # Avoid recompiling by hiding ninja with NINJA=":"
38 - make NINJA=":" $MAKE_CHECK_ARGS
40 .native_test_job_template:
41 extends: .common_test_job_template
43 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
46 - build/meson-logs/testlog.txt
48 junit: build/meson-logs/testlog.junit.xml
50 .avocado_test_job_template:
51 extends: .common_test_job_template
53 key: "${CI_JOB_NAME}-cache"
55 - ${CI_PROJECT_DIR}/avocado-cache
58 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
62 - build/tests/results/latest/results.xml
63 - build/tests/results/latest/test-results
65 junit: build/tests/results/latest/results.xml
67 - mkdir -p ~/.config/avocado
68 - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf
69 - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']"
70 >> ~/.config/avocado/avocado.conf
71 - echo -e '[job.output.testlogs]\nstatuses = ["FAIL", "INTERRUPT"]'
72 >> ~/.config/avocado/avocado.conf
73 - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then
74 du -chs ${CI_PROJECT_DIR}/avocado-cache ;
76 - export AVOCADO_ALLOW_UNTRUSTED_CODE=1
79 - du -chs ${CI_PROJECT_DIR}/avocado-cache