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 # We jump some hoops in common_test_job_template to avoid
29 # rebuilding all the object files we skip in the artifacts
30 .native_build_artifact_template:
35 - .git-submodule-status
44 .common_test_job_template:
45 extends: .base_job_template
47 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
49 - scripts/git-submodule.sh update
50 $(sed -n '/GIT_SUBMODULES=/ s/.*=// p' build/config-host.mak)
52 - find . -type f -exec touch {} +
53 # Avoid recompiling by hiding ninja with NINJA=":"
54 - make NINJA=":" $MAKE_CHECK_ARGS
56 .native_test_job_template:
57 extends: .common_test_job_template
59 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
62 - build/meson-logs/testlog.txt
64 junit: build/meson-logs/testlog.junit.xml
66 .avocado_test_job_template:
67 extends: .common_test_job_template
69 key: "${CI_JOB_NAME}-cache"
71 - ${CI_PROJECT_DIR}/avocado-cache
74 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
78 - build/tests/results/latest/results.xml
79 - build/tests/results/latest/test-results
81 junit: build/tests/results/latest/results.xml
83 - mkdir -p ~/.config/avocado
84 - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf
85 - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']"
86 >> ~/.config/avocado/avocado.conf
87 - echo -e '[job.output.testlogs]\nstatuses = ["FAIL", "INTERRUPT"]'
88 >> ~/.config/avocado/avocado.conf
89 - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then
90 du -chs ${CI_PROJECT_DIR}/avocado-cache ;
92 - export AVOCADO_ALLOW_UNTRUSTED_CODE=1
95 - du -chs ${CI_PROJECT_DIR}/avocado-cache