diff --git a/.travis.yml b/.travis.yml index 50c254b..32e3001 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ script: - arduino --get-pref sketchbook.path - install_libraries - cp -r $TRAVIS_BUILD_DIR $HOME/Arduino/libraries/ESPAsyncWebServer - - build_sketches arduino $HOME/Arduino/libraries/ESPAsyncWebServer + - build_sketches arduino $HOME/Arduino/libraries/ESPAsyncWebServer esp8266 notifications: email: diff --git a/examples/ESP32_AsyncFSBrowser/.esp8266.skip b/examples/ESP32_AsyncFSBrowser/.esp8266.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/ESP32_AsyncFSBrowser/ESP32_AsyncFSBrowser.ino b/examples/ESP32_AsyncFSBrowser/ESP32_AsyncFSBrowser.ino index fc5edea..b514e29 100644 --- a/examples/ESP32_AsyncFSBrowser/ESP32_AsyncFSBrowser.ino +++ b/examples/ESP32_AsyncFSBrowser/ESP32_AsyncFSBrowser.ino @@ -1,10 +1,3 @@ -#ifdef ESP8266 -#include -#include -#include -void setup(){} -void loop(){} -#else #include #include #include @@ -203,4 +196,3 @@ void setup(){ } void loop(){} -#endif diff --git a/examples/ESP_AsyncFSBrowser/.esp31b.skip b/examples/ESP_AsyncFSBrowser/.esp31b.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/ESP_AsyncFSBrowser/ESP_AsyncFSBrowser.ino b/examples/ESP_AsyncFSBrowser/ESP_AsyncFSBrowser.ino index da6b52c..0594d20 100644 --- a/examples/ESP_AsyncFSBrowser/ESP_AsyncFSBrowser.ino +++ b/examples/ESP_AsyncFSBrowser/ESP_AsyncFSBrowser.ino @@ -1,10 +1,3 @@ -#ifdef ESP31B -#include -#include -#include -void setup(){} -void loop(){} -#else #include #include #include @@ -227,4 +220,3 @@ void setup(){ void loop(){ ArduinoOTA.handle(); } -#endif diff --git a/travis/common.sh b/travis/common.sh index 413636d..26ab537 100755 --- a/travis/common.sh +++ b/travis/common.sh @@ -4,8 +4,14 @@ function build_sketches() { local arduino=$1 local srcpath=$2 + local platform=$3 local sketches=$(find $srcpath -name *.ino) for sketch in $sketches; do + local sketchdir=$(dirname $sketch) + if [[ -f "$sketchdir/.$platform.skip" ]]; then + echo -e "\n\n ------------ Skipping $sketch ------------ \n\n"; + continue + fi echo -e "\n\n ------------ Building $sketch ------------ \n\n"; $arduino --verify $sketch; local result=$?