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 - if test -n "$TARGETS";
16 ../configure --enable-werror --disable-docs ${LD_JOBS:+--meson=git} $CONFIGURE_ARGS --target-list="$TARGETS" ;
18 ../configure --enable-werror --disable-docs ${LD_JOBS:+--meson=git} $CONFIGURE_ARGS ;
19 fi || { cat config.log meson-logs/meson-log.txt && exit 1; }
20 - if test -n "$LD_JOBS";
22 ../meson/meson.py configure . -Dbackend_max_links="$LD_JOBS" ;
25 - if test -n "$MAKE_CHECK_ARGS";
27 make -j"$JOBS" $MAKE_CHECK_ARGS ;
30 .common_test_job_template:
31 extends: .base_job_template
33 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
35 - scripts/git-submodule.sh update
36 $(sed -n '/GIT_SUBMODULES=/ s/.*=// p' build/config-host.mak)
38 - find . -type f -exec touch {} +
39 # Avoid recompiling by hiding ninja with NINJA=":"
40 - make NINJA=":" $MAKE_CHECK_ARGS
42 .native_test_job_template:
43 extends: .common_test_job_template
45 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
48 - build/meson-logs/testlog.txt
50 junit: build/meson-logs/testlog.junit.xml
52 .avocado_test_job_template:
53 extends: .common_test_job_template
55 key: "${CI_JOB_NAME}-cache"
57 - ${CI_PROJECT_DIR}/avocado-cache
60 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
64 - build/tests/results/latest/results.xml
65 - build/tests/results/latest/test-results
67 junit: build/tests/results/latest/results.xml
69 - mkdir -p ~/.config/avocado
70 - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf
71 - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']"
72 >> ~/.config/avocado/avocado.conf
73 - echo -e '[job.output.testlogs]\nstatuses = ["FAIL", "INTERRUPT"]'
74 >> ~/.config/avocado/avocado.conf
75 - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then
76 du -chs ${CI_PROJECT_DIR}/avocado-cache ;
78 - export AVOCADO_ALLOW_UNTRUSTED_CODE=1
81 - du -chs ${CI_PROJECT_DIR}/avocado-cache