add version to travis build github release notes

This commit is contained in:
Paul
2019-10-29 23:05:23 +01:00
parent d09111960e
commit 02f5958f61
2 changed files with 5 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ jobs:
# - env: BUILDER_THREAD=3 # - env: BUILDER_THREAD=3
before_deploy: before_deploy:
- export FIRMWARE_VERSION=$(grep -E '^#define APP_VERSION' ./src/version.h | awk '{print $3}' | sed 's/"//g')
- git tag -f travis-${TAG}-build - git tag -f travis-${TAG}-build
- git remote add gh - git remote add gh
https://${OWNER}:${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git https://${OWNER}:${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
@@ -61,8 +62,8 @@ deploy:
file: "*.bin" file: "*.bin"
name: latest development build name: latest development build
release_notes: release_notes:
Automatic firmware builds of the current EMS-ESP $TRAVIS_BRANCH branch Automatic firmware builds of the current EMS-ESP branch for version $FIRMWARE_VERSION.
(commit $TRAVIS_COMMIT). Built by Travis CI on $(date +'%F %T %Z'). Built by Travis CI on $(date +'%F %T %Z') from commit $TRAVIS_COMMIT.
cleanup: false cleanup: false
prerelease: true prerelease: true
overwrite: true overwrite: true

View File

@@ -84,7 +84,8 @@ build_environments() {
platformio run --silent --environment $environment || exit 1 platformio run --silent --environment $environment || exit 1
stat_bytes .pio/build/$environment/firmware.bin stat_bytes .pio/build/$environment/firmware.bin
# mv .pio/build/$environment/firmware.bin $destination/EMS-ESP-$version-$environment.bin # mv .pio/build/$environment/firmware.bin $destination/EMS-ESP-$version-$environment.bin
mv .pio/build/$environment/firmware.bin EMS-ESP-$version-$environment.bin # mv .pio/build/$environment/firmware.bin EMS-ESP-$version-$environment.bin
mv .pio/build/$environment/firmware.bin EMS-ESP-dev-$environment.bin
done done
echo "--------------------------------------------------------------" echo "--------------------------------------------------------------"
} }