diff --git a/.gitignore b/.gitignore index 9cd85a451..a99e551a2 100644 --- a/.gitignore +++ b/.gitignore @@ -9,9 +9,7 @@ .pio .clang_complete .gcc-flags.json -platformio.ini lib/readme.txt -.travis.yml # web stuff compiled src/websrc/css/required.css diff --git a/platformio.ini-example b/platformio.ini similarity index 82% rename from platformio.ini-example rename to platformio.ini index 6ba3863f9..dc49125a6 100644 --- a/platformio.ini-example +++ b/platformio.ini @@ -5,16 +5,21 @@ [platformio] ;default_envs = release default_envs = debug +;default_envs = crash +;default_envs = tests [common] -; -DMYESP_TIMESTAMP -DTESTS -DCRASH -DFORCE_SERIAL -DNO_GLOBAL_EEPROM -DLOGICANALYZER +; -DMYESP_TIMESTAMP -DTESTS -DCRASH -DFORCE_SERIAL -DLOGICANALYZER +;general_flags = -DFORCE_SERIAL general_flags = [env] +;board = esp12e board = d1_mini framework = arduino platform = espressif8266 lib_deps = + ESPAsyncTCP CRC32 CircularBuffer OneWire @@ -23,7 +28,6 @@ lib_deps = ArduinoJson EEPROM_Rotate ESP Async WebServer - ESPAsyncTCP ESPAsyncUDP upload_speed = 921600 monitor_speed = 115200 @@ -39,7 +43,7 @@ monitor_speed = 115200 [env:buildweb] extra_scripts = pre:scripts/buildweb.py -[env:test] +[env:tests] build_type = debug build_flags = ${common.general_flags} -DTESTS extra_scripts = @@ -64,12 +68,11 @@ extra_scripts = extra_scripts = pre:scripts/clean_fw.py [env:release] -build_flags = ${common.general_flags} -extra_scripts = - pre:scripts/rename_fw.py - pre:scripts/buildweb.py +build_flags = ${common.general_flags} -DNO_GLOBAL_EEPROM +extra_scripts = pre:scripts/rename_fw.py [env:checkcode] build_type = debug build_flags = ${common.general_flags} -Wall extra_scripts = scripts/checkcode.py +