From f14a80cbcff40315c91dd532cc7ef7ded6555b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Wed, 14 Apr 2021 20:48:35 +0200 Subject: [PATCH] Don't print full diff when bytecode comparison fails in CI --- .circleci/config.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5f4df51fd..6e5b2bed4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1006,18 +1006,25 @@ jobs: t_bytecode_compare: docker: - image: << pipeline.parameters.ubuntu-2004-docker-image >> + environment: + REPORT_FILES: | + bytecode-report-emscripten.txt + bytecode-report-ubuntu-json.txt + bytecode-report-ubuntu-cli.txt + bytecode-report-osx-json.txt + bytecode-report-osx-cli.txt + bytecode-report-windows-json.txt + bytecode-report-windows-cli.txt steps: - attach_workspace: at: . - - run: | - diff --report-identical-files --from-file \ - bytecode-report-emscripten.txt \ - bytecode-report-ubuntu-json.txt \ - bytecode-report-ubuntu-cli.txt \ - bytecode-report-osx-json.txt \ - bytecode-report-osx-cli.txt \ - bytecode-report-windows-json.txt \ - bytecode-report-windows-cli.txt + - run: + name: Compare reports + command: diff --brief --report-identical-files --from-file $REPORT_FILES + - run: + name: Print diff + when: on_fail + command: diff --unified=0 --report-identical-files --from-file $REPORT_FILES | head --lines 50 workflows: version: 2