diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..ef55f846eb --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.pioenvs +.clang_complete +.gcc-flags.json +.piolibdeps diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..71dba885e1 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/before_deploy b/before_deploy new file mode 100755 index 0000000000..9ff0a7cbee --- /dev/null +++ b/before_deploy @@ -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 . diff --git a/dist/FlashESP8266.exe b/dist/FlashESP8266.exe new file mode 100644 index 0000000000..c5cd377688 Binary files /dev/null and b/dist/FlashESP8266.exe differ diff --git a/dist/esptool.exe b/dist/esptool.exe new file mode 100644 index 0000000000..2d4d4796c0 Binary files /dev/null and b/dist/esptool.exe differ diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000000..6678cb31d9 --- /dev/null +++ b/platformio.ini @@ -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)\"\'