From 9d08bf629e300a26b38d25368212181a1551aa9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Thu, 24 Jan 2019 09:23:39 +0100
Subject: [PATCH] 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.
---
 .gitlab-ci.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d4433fe..d11387f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,10 @@
+variables:
+  FLASHDEPS: python3
+             python3-coloredlogs
+             python3-jenkins
+             python3-requests
+             python3-tqdm
+             python3-yaml
 
 .tags: &tags
   tags:
@@ -31,3 +38,16 @@ 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:
+    - 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
+
-- 
GitLab