1 .native_build_job_template:
2 extends: .base_job_template
4 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:$QEMU_CI_CONTAINER_TAG
11 - JOBS=$(expr $(nproc) + 1)
13 - export CCACHE_BASEDIR="$(pwd)"
14 - export CCACHE_DIR="$CCACHE_BASEDIR/ccache"
15 - export CCACHE_MAXSIZE="500M"
16 - export PATH="$CCACHE_WRAPPERSDIR:$PATH"
20 - ../configure --enable-werror --disable-docs --enable-fdt=system
21 ${TARGETS:+--target-list="$TARGETS"}
23 { cat config.log meson-logs/meson-log.txt && exit 1; }
24 - if test -n "$LD_JOBS";
26 pyvenv/bin/meson configure . -Dbackend_max_links="$LD_JOBS" ;
29 - if test -n "$MAKE_CHECK_ARGS";
31 make -j"$JOBS" $MAKE_CHECK_ARGS ;
35 # We jump some hoops in common_test_job_template to avoid
36 # rebuilding all the object files we skip in the artifacts
37 .native_build_artifact_template:
43 - .git-submodule-status
52 .common_test_job_template:
53 extends: .base_job_template
55 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:$QEMU_CI_CONTAINER_TAG
57 - scripts/git-submodule.sh update roms/SLOF
58 - meson subprojects download $(cd build/subprojects && echo *)
60 - find . -type f -exec touch {} +
61 # Avoid recompiling by hiding ninja with NINJA=":"
62 - make NINJA=":" $MAKE_CHECK_ARGS
64 .native_test_job_template:
65 extends: .common_test_job_template
67 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
71 - build/meson-logs/testlog.txt
73 junit: build/meson-logs/testlog.junit.xml
75 .avocado_test_job_template:
76 extends: .common_test_job_template
78 key: "${CI_JOB_NAME}-cache"
80 - ${CI_PROJECT_DIR}/avocado-cache
83 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
87 - build/tests/results/latest/results.xml
88 - build/tests/results/latest/test-results
90 junit: build/tests/results/latest/results.xml
92 - mkdir -p ~/.config/avocado
93 - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf
94 - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']"
95 >> ~/.config/avocado/avocado.conf
96 - echo -e '[job.output.testlogs]\nstatuses = ["FAIL", "INTERRUPT"]'
97 >> ~/.config/avocado/avocado.conf
98 - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then
99 du -chs ${CI_PROJECT_DIR}/avocado-cache ;
101 - export AVOCADO_ALLOW_UNTRUSTED_CODE=1
104 - du -chs ${CI_PROJECT_DIR}/avocado-cache