From 49519699cb5d29c4d51c43dda1dc167f67038ce0 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Thu, 24 Jan 2019 08:40:16 +0000 Subject: [PATCH 1/2] devkit: Add option to skip uuu call --- scripts/librem5-devkit-flash-image | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/librem5-devkit-flash-image b/scripts/librem5-devkit-flash-image index d6bd010..c10acdc 100755 --- a/scripts/librem5-devkit-flash-image +++ b/scripts/librem5-devkit-flash-image @@ -245,6 +245,8 @@ def main(): help='Jenkins job to download the image from') group.add_argument('--uboot-job', type=str, default=UBOOT_JOB_NAME, help='Jenkins job to download the uboot from') + group.add_argument('--skip-flash', action='store_true', + help='Do not run the uuu script') args = parser.parse_args() level = logging.DEBUG if args.debug else logging.INFO @@ -286,7 +288,8 @@ def main(): download_uboot(urljoin(uboot_ref['url'], 'artifact/build/{}'.format(UBOOT)), uboot_target) write_uuu_script(uuu_target, image_target, uboot_target) - flash_image(uuu_target, args.debug) + if not args.skip_flash: + flash_image(uuu_target, args.debug) except VerifyImageException as e: logging.error(e) return 1 -- GitLab From 1008606159c16dd289d12067c27cde2a7cbdea25 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Thu, 24 Jan 2019 08:40:37 +0000 Subject: [PATCH 2/2] ci: Test devkit image download --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d4433fe..260179a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,16 @@ tags: - librem5 +test_download: + <<: *tags + stage: test + before_script: + - export DEBIAN_FRONTEND=noninteractive + - apt-get -y update + - apt-get -y install python3-jenkins python3-tqdm python3-yaml python3-requests + script: + - ./scripts/librem5-devkit-flash-image --skip-flash + build:docs: <<: *tags stage: build -- GitLab