CI: Use TESTIMAGE_AUTO

Now that TESTIMAGE_AUTO is available for Zephyr builds, enable it in
ci/testimage.yml and remove the redundant build_and_test base
configuration.

Remove testimage from Nios2 build as it is currently failing.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
This commit is contained in:
Peter Hoyes
2022-07-26 16:15:11 +01:00
committed by Naveen Saini
parent afa14aa406
commit 8844bbd846
2 changed files with 4 additions and 14 deletions

View File

@@ -35,17 +35,6 @@ stages:
paths:
- $CI_PROJECT_DIR/work/build/tmp/work*/**/temp/log.do_*.*
# Workaround for Zephyr not currectly handling TESTIMAGE_AUTO
.build_and_test:
extends: .setup
script:
- KASFILES=$(./ci/jobs-to-kas "$CI_JOB_NAME")
- kas shell --update --force-checkout $KASFILES -c 'cat conf/*.conf'
- kas build $KASFILES
- kas build $KASFILES -c testimage
- ./ci/check-warnings $KAS_WORK_DIR/build/warnings.log
#
# Prep stage, update repositories once
#
@@ -92,10 +81,10 @@ stm32mp157c-dk2:
extends: .build
qemu-cortex-m3/testimage:
extends: .build_and_test
extends: .build
qemu-nios2/testimage:
qemu-nios2:
extends: .build
qemu-x86/testimage:
extends: .build_and_test
extends: .build

View File

@@ -6,3 +6,4 @@ local_conf_header:
IMAGE_CLASSES += "testimage"
TEST_TARGET = "QemuTargetZephyr"
TEST_SUITES = "zephyr"
TESTIMAGE_AUTO = "1"