Browse Source

Merge pull request #1170 from lobradov/v2-better-build

Minor improvement to build.sh
v2^2
Xose Pérez 6 years ago
committed by GitHub
parent
commit
ecc3af0914
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      code/build.sh

+ 6
- 2
code/build.sh View File

@ -103,8 +103,12 @@ build_environments() {
for environment in $environments; do
echo -n "* espurna-$version-$environment.bin --- "
platformio run --silent --environment $environment 2>/dev/null || exit 1
stat -c %s .pioenvs/$environment/firmware.bin
platformio run --silent --environment $environment || exit 1
if [[ $(uname -s) == "Darwin" ]]; then
stat -f %z .pioenvs/$environment/firmware.bin
else
stat -c %s .pioenvs/$environment/firmware.bin
fi
[[ "${TRAVIS_BUILD_STAGE_NAME}" = "Test" ]] || \
mv .pioenvs/$environment/firmware.bin $destination/espurna-$version/espurna-$version-$environment.bin
done


Loading…
Cancel
Save