Skip to content

Commit

Permalink
platformio settings, travis settings, flashtools for windows, deploy …
Browse files Browse the repository at this point in the history
…script to create release .zip file
  • Loading branch information
psy0rz committed Mar 1, 2017
1 parent 3659307 commit 640ee05
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.pioenvs
.clang_complete
.gcc-flags.json
.piolibdeps
33 changes: 33 additions & 0 deletions .travis.yml
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
25 changes: 25 additions & 0 deletions before_deploy
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 added dist/FlashESP8266.exe
Binary file not shown.
Binary file added dist/esptool.exe
Binary file not shown.
68 changes: 68 additions & 0 deletions platformio.ini
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)\"\'

0 comments on commit 640ee05

Please sign in to comment.