diff --git a/.gitignore b/.gitignore index db03415..7558808 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .pioenvs +.pio .clang_complete .gcc-flags.json diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..785345f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +# Continuous Integration (CI) is the practice, in software +# engineering, of merging all developer working copies with a shared mainline +# several times a day < https://docs.platformio.org/page/ci/index.html > +# +# Documentation: +# +# * Travis CI Embedded Builds with PlatformIO +# < https://docs.travis-ci.com/user/integration/platformio/ > +# +# * PlatformIO integration with Travis CI +# < https://docs.platformio.org/page/ci/travis.html > +# +# * User Guide for `platformio ci` command +# < https://docs.platformio.org/page/userguide/cmd_ci.html > +# +language: python +python: + - "3.7.5" + +sudo: false +cache: + directories: + - "~/.platformio" + +install: + - pip install -U platformio + - platformio update + +script: + - platformio ci --lib="./src" -c platformio.ini ./examples/simple/ diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..e52187c --- /dev/null +++ b/platformio.ini @@ -0,0 +1,28 @@ +[platformio] +default_envs = nodemcuv2 + +[common] +lib_deps = + ArduinoJson@5.13.4 + +[env:nodemcuv2] +platform = https://github.com/platformio/platform-espressif8266.git +board = d1_mini +framework = arduino +monitor_speed = 115200 +build_flags = -std=c++11, -Wl,-Teagle.flash.4m3m.ld, -D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH, -DARDUINO_ARCH_ESP8266 +lib_ldf_mode = deep +board_build.f_flash = 80000000L +upload_speed = 115200 +lib_deps = ${common.lib_deps} +test_filter = embedded + +[env:esp32] +platform = https://github.com/platformio/platform-espressif32.git +board = esp-wrover-kit +framework = arduino +board_build.partitions = noota_3g.csv +build_flags = -std=c++11, -DARDUINO_ARCH_ESP32 +lib_ldf_mode = deep +lib_deps = ${common.lib_deps} +test_filter = embedded