From bc70dec09fd3c868caeda248c42dc468e82f9402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 5 Dec 2019 08:02:41 +0100 Subject: [PATCH] Beautify build script size output --- README.md | 4 ++-- code/build.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2952c49c..5dac2b85 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ ESPurna ("spark" in Catalan) is a custom firmware for ESP8285/ESP8266 based smar It uses the Arduino Core for ESP8266 framework and a number of 3rd party libraries. [![version](https://img.shields.io/badge/version-1.14.0-brightgreen.svg)](CHANGELOG.md) -[![branch](https://img.shields.io/badge/branch-master-orange.svg)](https://github.com/xoseperez/espurna/tree/master/) +[![branch](https://img.shields.io/badge/branch-dev-orange.svg)](https://github.com/xoseperez/espurna/tree/dev/) [![license](https://img.shields.io/github/license/xoseperez/espurna.svg)](LICENSE) -[![travis](https://travis-ci.org/xoseperez/espurna.svg?branch=master)](https://travis-ci.org/xoseperez/espurna) +[![travis](https://travis-ci.org/xoseperez/espurna.svg?branch=dev)](https://travis-ci.org/xoseperez/espurna) [![codacy](https://api.codacy.com/project/badge/Grade/c9496e25cf07434cba786b462cb15f49)](https://www.codacy.com/app/xoseperez/espurna/dashboard)
[![latest master build](https://img.shields.io/github/release/xoseperez/espurna/all.svg?label=latest%20master%20build)](https://github.com/xoseperez/espurna/releases/latest) diff --git a/code/build.sh b/code/build.sh index 93bbd38f..51865c7d 100755 --- a/code/build.sh +++ b/code/build.sh @@ -125,8 +125,9 @@ build_environments() { mkdir -p $destination/espurna-$version for environment in $environments; do - echo -n "* espurna-$version-$environment.bin --- " + echo "* espurna-$version-$environment.bin" platformio run --silent --environment $environment || exit 1 + echo -n "SIZE: " stat_bytes .pio/build/$environment/firmware.bin [[ "${TRAVIS_BUILD_STAGE_NAME}" = "Test" ]] || \ mv .pio/build/$environment/firmware.bin $destination/espurna-$version/espurna-$version-$environment.bin