1 .native_build_job_template:
2 extends: .base_job_template
4 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:$QEMU_CI_CONTAINER_TAG
6 - JOBS=$(expr $(nproc) + 1)
10 - ../configure --enable-werror --disable-docs --enable-fdt=system
11 ${TARGETS:+--target-list="$TARGETS"}
13 { cat config.log meson-logs/meson-log.txt && exit 1; }
14 - if test -n "$LD_JOBS";
16 pyvenv/bin/meson configure . -Dbackend_max_links="$LD_JOBS" ;
19 - if test -n "$MAKE_CHECK_ARGS";
21 make -j"$JOBS" $MAKE_CHECK_ARGS ;
24 # We jump some hoops in common_test_job_template to avoid
25 # rebuilding all the object files we skip in the artifacts
26 .native_build_artifact_template:
32 - .git-submodule-status
41 .common_test_job_template:
42 extends: .base_job_template
44 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:$QEMU_CI_CONTAINER_TAG
46 - scripts/git-submodule.sh update roms/SLOF
47 - meson subprojects download $(cd build/subprojects && echo *)
49 - find . -type f -exec touch {} +
50 # Avoid recompiling by hiding ninja with NINJA=":"
51 - make NINJA=":" $MAKE_CHECK_ARGS
53 .native_test_job_template:
54 extends: .common_test_job_template
56 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
60 - build/meson-logs/testlog.txt
62 junit: build/meson-logs/testlog.junit.xml
64 .avocado_test_job_template:
65 extends: .common_test_job_template
67 key: "${CI_JOB_NAME}-cache"
69 - ${CI_PROJECT_DIR}/avocado-cache
72 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
76 - build/tests/results/latest/results.xml
77 - build/tests/results/latest/test-results
79 junit: build/tests/results/latest/results.xml
81 - mkdir -p ~/.config/avocado
82 - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf
83 - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']"
84 >> ~/.config/avocado/avocado.conf
85 - echo -e '[job.output.testlogs]\nstatuses = ["FAIL", "INTERRUPT"]'
86 >> ~/.config/avocado/avocado.conf
87 - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then
88 du -chs ${CI_PROJECT_DIR}/avocado-cache ;
90 - export AVOCADO_ALLOW_UNTRUSTED_CODE=1
93 - du -chs ${CI_PROJECT_DIR}/avocado-cache