From 30cda36d9ab6735da780015bb8cb808e69f48b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Wed, 14 Apr 2021 20:48:40 +0200 Subject: [PATCH] Create a bundle with all bytecode reports when comparison fails in CI --- .circleci/config.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6e5b2bed4..f102a5659 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1025,6 +1025,20 @@ jobs: name: Print diff when: on_fail command: diff --unified=0 --report-identical-files --from-file $REPORT_FILES | head --lines 50 + - run: + name: Install zip + when: on_fail + command: | + apt update --quiet + apt install zip --assume-yes + - run: + name: Bundle reports into a single package + when: on_fail + command: zip all-bytecode-reports.zip $REPORT_FILES + - store_artifacts: + # NOTE: store_artifacts does not support the 'when' attribute. + # Fortunately when the artifact does not exist it just says "No artifact files found" and ignores it. + path: all-bytecode-reports.zip workflows: version: 2