From 93db6cb5e6542e81ada663b510cee651a7bde44c Mon Sep 17 00:00:00 2001 From: Owen Carter Date: Wed, 30 Sep 2020 20:25:47 +0200 Subject: [PATCH] PlatformIO travis (#62) Travis now tests both Arduino and PlatformIO builds --- .travis.yml | 3 +++ platformio.ini | 15 +++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index a6bb899..6e4bd73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,8 @@ before_script: - git submodule update --init --recursive - cd tools - python get.py + - pip install --user platformio + - platformio update script: - cd $TRAVIS_BUILD_DIR @@ -27,6 +29,7 @@ script: - arduino --verbose --verify esp32-cam-webserver.ino - cp --preserve --verbose myconfig.sample.h myconfig.h - arduino --verbose --verify esp32-cam-webserver.ino + - platformio run notifications: diff --git a/platformio.ini b/platformio.ini index e261682..74a34ef 100644 --- a/platformio.ini +++ b/platformio.ini @@ -1,16 +1,15 @@ ; PlatformIO Project Configuration File -; -; Build options: build flags, source filter -; Upload options: custom upload port, speed and extra flags -; Library options: dependencies, extra library storages -; Advanced options: extra scripting -; -; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html +; The esp32-cam-webserver project is intended to be easily compilable +; with the stock Arduino IDE. +; - Maintaining compatibility with other development environments +; is important, but I wont accept changes to the PlatformIO build that +; break compatibilty with the stock IDE. Eg by using non-standard +; partition schemes or overriding Arduino defined limits, etc. + [platformio] src_dir = ./ -;lib_dir = ../../ [env:esp32cam] platform = espressif32