From 42b8efeb797b532494ce262dce3d93c35d22ae87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Tue, 10 Jul 2018 17:04:27 +0200 Subject: [PATCH] Recover size report in build script --- code/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/build.sh b/code/build.sh index 5f613600..57b030f9 100755 --- a/code/build.sh +++ b/code/build.sh @@ -89,8 +89,9 @@ build_environments() { mkdir -p ../firmware/espurna-$version for environment in $environments; do - echo "* espurna-$version-$environment.bin" + echo -n "* espurna-$version-$environment.bin --- " platformio run --silent --environment $environment || exit 1 + stat -c %s .pioenvs/$environment/firmware.bin [[ "${TRAVIS_BUILD_STAGE_NAME}" = "Test" ]] || \ mv .pioenvs/$environment/firmware.bin ../firmware/espurna-$version/espurna-$version-$environment.bin done @@ -130,4 +131,3 @@ fi build_webui build_environments -