Skip to content
Snippets Groups Projects

.oniro-ci: enable lava test jobs on Seco C61 4G

Merged Chase Qi requested to merge (removed):seco-c61 into kirkstone
Compare and
2 files
+ 22
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -102,6 +102,9 @@
- test -n "$CI_ONIRO_BUILD_FLAVOUR" || (
echo "precondition failed - set CI_ONIRO_BUILD_FLAVOUR to \"flavour\" of the build to use (e.g. linux)"
&& exit 1 )
- test -n "$MACHINE" || (
echo "precondition failed - set MACHINE to supported machines (e.g. qemux86-64)"
&& exit 1 )
# Check devtool operation is enabled and configured properly.
- |
if { [ -n "$CI_ONIRO_DEVTOOL_RECIPE_NAME" ] && [ -z "$CI_ONIRO_DEVTOOL_LAYER_PATH" ]; } || { [ -z "$CI_ONIRO_DEVTOOL_RECIPE_NAME" ] && [ -n "$CI_ONIRO_DEVTOOL_LAYER_PATH" ]; } then
@@ -290,9 +293,11 @@
- !reference [.build-image, script]
# Remove everything _except_ for the .wic.* and *.bmap and ovmf.qcow2 files.
# Most of the remaining files are redundant and quite large. Our Linux
# builds really only care about the wic files and the qemu UEFI firmware.
# builds really only care about the wic files, qemu UEFI firmware and the
# bootloader for Seco C61.
- echo "Removing non-wic/bmap image files"
- find "$CI_PROJECT_DIR"/artifacts/images/ \( -type f -o -type l \) -a ! \( -name "*.wic.*" -o -name "ovmf.qcow2" \) -print -delete
- find "$CI_PROJECT_DIR"/artifacts/images/ \( -type f -o -type l \) -a ! \(
-name "*.wic.*" -o -name "ovmf.qcow2" -o -name "*.bin-flash_evk" \) -print -delete
- echo "Pruning empty directories"
- find "$CI_PROJECT_DIR"/artifacts/ -type d -exec rmdir --verbose --ignore-fail-on-non-empty {} \; 2>/dev/null || true
Loading