support/misc/gitlab-ci.yml.in: pass emulator builtin binaries as artifacts
Notes: We can't use runtime_test_download job from the parent pipeline (generate-gitlab-ci) since the artifacts archive size is limited to 5MB. So introduce a new custom stage named "download" executed before "test" stage. test-dl directory that contain downloaded files can be an artifact of the job passed to all jobs of next stages. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/4409032417 Runtime tested: https://gitlab.com/kubu93/buildroot/-/pipelines/934319226 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
5f5ecb551f
commit
40fa607e51
@ -1,4 +1,5 @@
|
|||||||
stages:
|
stages:
|
||||||
|
- download
|
||||||
- test
|
- test
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
@ -78,6 +79,16 @@ before_script:
|
|||||||
- output/build/*/.config
|
- output/build/*/.config
|
||||||
- runtime-test.log
|
- runtime-test.log
|
||||||
|
|
||||||
|
.runtime_test_download:
|
||||||
|
stage: download
|
||||||
|
# Keep test-dl directory so the downloaded files can be an artifact of
|
||||||
|
# the job passed to all jobs of next stages.
|
||||||
|
script: ./support/testing/run-tests -d test-dl/ --prepare-only
|
||||||
|
artifacts:
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- test-dl/
|
||||||
|
|
||||||
.runtime_test_base:
|
.runtime_test_base:
|
||||||
stage: test
|
stage: test
|
||||||
# Keep build directories so the rootfs can be an artifact of the job. The
|
# Keep build directories so the rootfs can be an artifact of the job. The
|
||||||
|
@ -132,6 +132,7 @@ gen_tests() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ${do_runtime:-false}; then
|
if ${do_runtime:-false}; then
|
||||||
|
printf 'runtime_test_download: { extends: .runtime_test_download }\n'
|
||||||
printf '%s: { extends: .runtime_test_base }\n' "${runtimes[@]}"
|
printf '%s: { extends: .runtime_test_base }\n' "${runtimes[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user