mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
support/misc/gitlab-ci.yml.in: templatise the make command
In a followup commit, the make command used to log and display the last lines on error will be used in another job. Factorize it by introducing .run_make template. Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
32041f050e
commit
208e98beb2
@@ -26,20 +26,24 @@
|
|||||||
paths:
|
paths:
|
||||||
- .config
|
- .config
|
||||||
|
|
||||||
|
.run_make: &run_make
|
||||||
|
|
|
||||||
|
make O=${OUTPUT_DIR} > >(tee build.log |grep '>>>') 2>&1 || {
|
||||||
|
echo 'Failed build last output'
|
||||||
|
tail -200 build.log
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
.defconfig_base:
|
.defconfig_base:
|
||||||
before_script:
|
before_script:
|
||||||
- DEFCONFIG_NAME=${CI_JOB_NAME}
|
- DEFCONFIG_NAME=${CI_JOB_NAME}
|
||||||
|
- OUTPUT_DIR=output
|
||||||
script:
|
script:
|
||||||
- echo "Configure Buildroot for ${DEFCONFIG_NAME}"
|
- echo "Configure Buildroot for ${DEFCONFIG_NAME}"
|
||||||
- make ${DEFCONFIG_NAME}
|
- make ${DEFCONFIG_NAME}
|
||||||
- ./support/scripts/check-dotconfig.py .config ./configs/${DEFCONFIG_NAME}
|
- ./support/scripts/check-dotconfig.py .config ./configs/${DEFCONFIG_NAME}
|
||||||
- echo 'Build buildroot'
|
- echo 'Build buildroot'
|
||||||
- |
|
- *run_make
|
||||||
make > >(tee build.log |grep '>>>') 2>&1 || {
|
|
||||||
echo 'Failed build last output'
|
|
||||||
tail -200 build.log
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
- |
|
- |
|
||||||
./support/scripts/boot-qemu-image.py "${DEFCONFIG_NAME}" > >(tee runtime-test.log) 2>&1 || {
|
./support/scripts/boot-qemu-image.py "${DEFCONFIG_NAME}" > >(tee runtime-test.log) 2>&1 || {
|
||||||
echo 'Failed runtime test last output'
|
echo 'Failed runtime test last output'
|
||||||
|
|||||||
Reference in New Issue
Block a user