1 .native_build_job_template:
2 extends: .base_job_template
4 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
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:
31 - .git-submodule-status
40 .common_test_job_template:
41 extends: .base_job_template
43 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
45 - scripts/git-submodule.sh update roms/SLOF
46 - meson subprojects download $(cd build/subprojects && echo *)
48 - find . -type f -exec touch {} +
49 # Avoid recompiling by hiding ninja with NINJA=":"
50 - make NINJA=":" $MAKE_CHECK_ARGS
52 .native_test_job_template:
53 extends: .common_test_job_template
55 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
58 - build/meson-logs/testlog.txt
60 junit: build/meson-logs/testlog.junit.xml
62 .avocado_test_job_template:
63 extends: .common_test_job_template
65 key: "${CI_JOB_NAME}-cache"
67 - ${CI_PROJECT_DIR}/avocado-cache
70 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
74 - build/tests/results/latest/results.xml
75 - build/tests/results/latest/test-results
77 junit: build/tests/results/latest/results.xml
79 - mkdir -p ~/.config/avocado
80 - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf
81 - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']"
82 >> ~/.config/avocado/avocado.conf
83 - echo -e '[job.output.testlogs]\nstatuses = ["FAIL", "INTERRUPT"]'
84 >> ~/.config/avocado/avocado.conf
85 - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then
86 du -chs ${CI_PROJECT_DIR}/avocado-cache ;
88 - export AVOCADO_ALLOW_UNTRUSTED_CODE=1
91 - du -chs ${CI_PROJECT_DIR}/avocado-cache