forked from letscontrolit/ESPEasy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platformio settings, travis settings, flashtools for windows, deploy …
…script to create release .zip file
- Loading branch information
Showing
6 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.pioenvs | ||
.clang_complete | ||
.gcc-flags.json | ||
.piolibdeps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
language: python | ||
python: | ||
- '2.7' | ||
sudo: false | ||
cache: | ||
directories: | ||
- "~/.platformio" | ||
- "./.pioenvs" | ||
install: | ||
- pip install -U platformio | ||
script: | ||
- platformio run | ||
|
||
before_deploy: | ||
- ./before_deploy | ||
- export RELEASE_FILE=$(ls ESPEasy*.zip) | ||
|
||
deploy: | ||
provider: releases | ||
prerelease: true | ||
api_key: | ||
secure: QLNThyMYiB091gvec9zKOnzs2CNdiXzmSVdmlSwrLgx/PFC1Xw9h6r43yczcI+e3WoUrenmdngRyDDSW44lvNPgDxfBwDObktACtrb8yYSGRGQiR7RQjcrqfku1zgV2XfQAP3cXrbdRZbjVsmFp/do3ahF2s/MjV5Y/UGrneuprnL3BbVKssKbC2kx5AUgUWRnButdMvPQDR3kdK+TC2CoK5FKYtNL7NKATkb2xyvuBNyvSiwGbX3OfOnue6NLag0lDhp3QMgqJc1RNsLjf+z8+NPaDg8DSwgEDuxRUGEhlrttEz/n71KN2b3cwGNzIPzcr3R/HpaDMY8PS+9sq2/PiZrYfAjCagsdBFMxb4CeIJQ8r/b9/tJHiF08+4CeSyEbcgHPecilq3W3kjjYnCNygLb3E7pKZasSfg8uZzEYcIjJz78ZWAd0Bmwomf9iq5snhpY4UGu+awx8aY9X6IA0hFnlYpUZRrG435gsgkjHy9gpzA/5Hfgjd8bk0kRDCVwARQyMiEwYh1Ny0LWsquYJWbB0XkUUu6Rac7Zi7qPETeYS5oZqiytWglLipaqs/jzn4RL055RkAkls8ANPfHi+kgqIa6Km1TdYhZ4+2Nv8X2yrRcShOKvKcL/Z6tY35XSQiYVO/Xrj4xUly15QblhNHUtcJFWAiXYcgf+aoXLkI= | ||
|
||
file_glob: true | ||
file: "${RELEASE_FILE}" | ||
|
||
skip_cleanup: true | ||
on: | ||
tags: true | ||
# repo: psy0rz/ESPEasy-platformio | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
VERSION=$(git describe) | ||
echo "Creating release archives for $VERSION ..." | ||
#binaries | ||
# cp .pioenvs/mini_512/firmware.bin dist/"ESPEasy_$VERSION""_mini_512.bin" | ||
|
||
cp .pioenvs/normal_1024/firmware.bin dist/"ESPEasy_$VERSION""_normal_1024.bin" | ||
cp .pioenvs/normal_4096/firmware.bin dist/"ESPEasy_$VERSION""_normal_4096.bin" | ||
|
||
cp .pioenvs/test_1024/firmware.bin dist/"ESPEasy_$VERSION""_test_1024.bin" | ||
cp .pioenvs/test_4096/firmware.bin dist/"ESPEasy_$VERSION""_test_4096.bin" | ||
|
||
cp .pioenvs/dev_1024/firmware.bin dist/"ESPEasy_$VERSION""_dev_1024.bin" | ||
cp .pioenvs/dev_4096/firmware.bin dist/"ESPEasy_$VERSION""_dev_4096.bin" | ||
|
||
#create a source structure that is the same as the original ESPEasy project (and works with the howto on the wiki) | ||
rm -rf dist/Source 2>/dev/null | ||
mkdir dist/Source | ||
cp -r lib dist/Source/Libraries | ||
cp -r src dist/Source/ESPEasy | ||
rm dist/Source/Libraries/readme.txt | ||
|
||
cd dist | ||
zip ../ESPEasy_$VERSION.zip -r . |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# | ||
# PlatformIO Project Configuration File | ||
# | ||
# Please make sure to read documentation with examples first | ||
# http://docs.platformio.org/en/stable/projectconf.html | ||
# | ||
|
||
#minimal version for esps with 512K or less flash (only has minimal plugin set) | ||
; [env:mini_512] | ||
; platform = espressif8266 | ||
; framework = arduino | ||
; board = esp01 | ||
; upload_speed=460800 | ||
; build_flags = !echo -Wl,-Tesp8266.flash.512k64.ld -D BUILD_GIT=\'\"$(git describe)\"\' | ||
; # upload_port = /dev/ttyUSB0 | ||
|
||
|
||
#normal version with stable plugins, 1024k version | ||
[env:normal_1024] | ||
platform = espressif8266 | ||
framework = arduino | ||
board = esp12e | ||
upload_speed=460800 | ||
build_flags = !echo -Wl,-Tesp8266.flash.1m128.ld -D PLUGIN_BUILD_NORMAL -D BUILD_GIT=\'\"$(git describe)\"\' | ||
# upload_port = /dev/ttyUSB0 | ||
#normal version with stable plugins, 4096k version | ||
[env:normal_4096] | ||
platform = espressif8266 | ||
framework = arduino | ||
board = esp12e | ||
upload_speed=460800 | ||
build_flags = !echo -Wl,-Tesp8266.flash.4m1m.ld -D PLUGIN_BUILD_NORMAL -D BUILD_GIT=\'\"$(git describe)\"\' | ||
# upload_port = /dev/ttyUSB0 | ||
#version with additional plugins (and dependend code) that are in test-stadium 1024k | ||
[env:test_1024] | ||
platform = espressif8266 | ||
framework = arduino | ||
board = esp12e | ||
upload_speed=460800 | ||
build_flags = !echo -Wl,-Tesp8266.flash.1m128.ld -D PLUGIN_BUILD_NORMAL -D PLUGIN_BUILD_TESTING -D BUILD_GIT=\'\"$(git describe)\"\' | ||
#version with additional plugins (and dependend code) that are in test-stadium 4096k | ||
[env:test_4096] | ||
platform = espressif8266 | ||
framework = arduino | ||
board = esp12e | ||
upload_speed=460800 | ||
build_flags = !echo -Wl,-Tesp8266.flash.4m1m.ld -D PLUGIN_BUILD_NORMAL -D PLUGIN_BUILD_TESTING -D BUILD_GIT=\'\"$(git describe)\"\' | ||
#version with additional plugins (and dependend code) that is in development (probably broken or incomplete) 1024k | ||
[env:dev_1024] | ||
platform = espressif8266 | ||
framework = arduino | ||
board = esp12e | ||
upload_speed=460800 | ||
build_flags = !echo -Wl,-Tesp8266.flash.1m128.ld -D PLUGIN_BUILD_NORMAL -D PLUGIN_BUILD_TESTING -D PLUGIN_BUILD_DEV -D BUILD_GIT=\'\"$(git describe)\"\' | ||
#version with additional plugins (and dependend code) that is in development (probably broken or incomplete) 4096k | ||
[env:dev_4096] | ||
platform = espressif8266 | ||
framework = arduino | ||
board = esp12e | ||
upload_speed=460800 | ||
build_flags = !echo -Wl,-Tesp8266.flash.4m1m.ld -D PLUGIN_BUILD_NORMAL -D PLUGIN_BUILD_TESTING -D PLUGIN_BUILD_DEV -D BUILD_GIT=\'\"$(git describe)\"\' |