mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
add esp32
This commit is contained in:
+6
-5
@@ -14,7 +14,6 @@ install:
|
||||
- arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs
|
||||
- arduino --install-library "ArduinoJson"
|
||||
- arduino --install-boards esp8266:esp8266
|
||||
|
||||
- arduino --pref "compiler.warning_level=all" --save-prefs
|
||||
# install esp32
|
||||
- pushd .
|
||||
@@ -33,10 +32,12 @@ script:
|
||||
- "echo $HOME"
|
||||
- "ls $PWD"
|
||||
- source $TRAVIS_BUILD_DIR/travis/common.sh
|
||||
- arduino --board esp8266:esp8266:generic:CpuFrequency=80,CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=4M1M,led=2,LwIPVariant=v2mss536,Debug=Serial,DebugLevel=CORE --save-prefs
|
||||
- build_examples
|
||||
- arduino --board espressif:esp32:esp32:FlashMode=qio,FlashFreq=80,FlashSize=4M,DebugLevel=info --save-prefs
|
||||
- build_examples
|
||||
# - arduino --board esp8266:esp8266:generic:CpuFrequency=80,CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=4M1M,led=2,LwIPVariant=v2mss536,Debug=Serial,DebugLevel=CORE --save-prefs
|
||||
# - build_examples
|
||||
- arduino --board espressif:esp32:nodemcu-32s --save-prefs
|
||||
# some examples fail (SPIFFS defines differ esp32 vs esp8266) so we exclude them
|
||||
- excludes=("AutoConnectWithFSParametersAndCustomIP.ino" "AutoConnectWithFSParameters.ino")
|
||||
- build_examples "${excludes[@]}"
|
||||
# - arduino -v --verbose-build --verify $PWD/examples/AutoConnect/AutoConnect.ino
|
||||
|
||||
after_success:
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
function build_examples()
|
||||
{
|
||||
excludes=("$@")
|
||||
# track the exit code for this platform
|
||||
local exit_code=0
|
||||
# loop through results and add them to the array
|
||||
@@ -19,6 +20,14 @@ function build_examples()
|
||||
# store the filename for the example without the path
|
||||
local example_file=$(basename $example)
|
||||
|
||||
# skip files listed as excludes
|
||||
for exclude in "${excludes[@]}"; do
|
||||
if [ "${example_file}" == "${exclude}" ] ; then
|
||||
echo "Skipping ${example_file}!"
|
||||
continue 2
|
||||
fi
|
||||
done
|
||||
|
||||
echo "$example_file: "
|
||||
local sketch="$example_dir/$example_file"
|
||||
echo "$sketch"
|
||||
|
||||
Reference in New Issue
Block a user