Commit 70760ade authored by Guido Gunther's avatar Guido Gunther

gitlab-ci: Test librem5-devkit-flash-image download

We can't test the actual flashing but that's most of what the script
does atm.

This will make us spot things like fixed in !1 early.
parent d4e4b841
variables:
FLASHDEPS: python3
python3-coloredlogs
python3-jenkins
python3-requests
python3-tqdm
python3-yaml
.tags: &tags
tags:
......@@ -31,3 +38,17 @@ build:deb:
artifacts:
paths:
- '*.deb'
test:download:
<<: *tags
stage: test
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install $FLASHDEPS
script:
- mkdir download
- scripts/librem5-devkit-flash-image --skip-flash --skip-cleanup --dir=download/
- ls -l download/devkit.img download/flash_devkit.lst download/u-boot-devkit-recovery.imx
- rm -rf download
......@@ -289,7 +289,6 @@ def main():
uboot_target)
write_uuu_script(uuu_target, image_target, uboot_target)
if not args.skip_flash:
flash_image(uuu_target)
flash_image(uuu_target, args.debug)
except VerifyImageException as e:
logging.error(e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment