forked from espressif/arduino-esp32
skip some examples
This commit is contained in:
26
.github/scripts/install-arduino-ide.sh
vendored
26
.github/scripts/install-arduino-ide.sh
vendored
@ -116,9 +116,10 @@ function build_sketch(){ # build_sketch <fqbn> <path-to-ino> [extra-options]
|
|||||||
$win_opts $xtra_opts "$sketch"
|
$win_opts $xtra_opts "$sketch"
|
||||||
}
|
}
|
||||||
|
|
||||||
function count_sketches() # count_sketches <examples-path>
|
function count_sketches() # count_sketches <examples-path> <target-mcu>
|
||||||
{
|
{
|
||||||
local examples="$1"
|
local examples="$1"
|
||||||
|
local target="$2"
|
||||||
rm -rf sketches.txt
|
rm -rf sketches.txt
|
||||||
if [ ! -d "$examples" ]; then
|
if [ ! -d "$examples" ]; then
|
||||||
touch sketches.txt
|
touch sketches.txt
|
||||||
@ -133,7 +134,7 @@ function count_sketches() # count_sketches <examples-path>
|
|||||||
if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then
|
if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then
|
||||||
continue
|
continue
|
||||||
fi;
|
fi;
|
||||||
if [[ -f "$sketchdir/.test.skip" ]]; then
|
if [[ -f "$sketchdir/.skip.$target" ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo $sketch >> sketches.txt
|
echo $sketch >> sketches.txt
|
||||||
@ -142,24 +143,25 @@ function count_sketches() # count_sketches <examples-path>
|
|||||||
return $sketchnum
|
return $sketchnum
|
||||||
}
|
}
|
||||||
|
|
||||||
function build_sketches() # build_sketches <fqbn> <examples-path> <chunk> <total-chunks> [extra-options]
|
function build_sketches() # build_sketches <fqbn> <target-mcu> <examples-path> <chunk> <total-chunks> [extra-options]
|
||||||
{
|
{
|
||||||
local fqbn=$1
|
local fqbn=$1
|
||||||
local examples=$2
|
local target="$2"
|
||||||
local chunk_idex=$3
|
local examples=$3
|
||||||
local chunks_num=$4
|
local chunk_idex=$4
|
||||||
local xtra_opts=$5
|
local chunks_num=$5
|
||||||
|
local xtra_opts=$6
|
||||||
|
|
||||||
if [ "$#" -lt 2 ]; then
|
if [ "$#" -lt 3 ]; then
|
||||||
echo "ERROR: Illegal number of parameters"
|
echo "ERROR: Illegal number of parameters"
|
||||||
echo "USAGE: build_sketches <fqbn> <examples-path> [<chunk> <total-chunks>] [extra-options]"
|
echo "USAGE: build_sketches <fqbn> <target-mcu <examples-path> [<chunk> <total-chunks>] [extra-options]"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$#" -lt 4 ]; then
|
if [ "$#" -lt 5 ]; then
|
||||||
chunk_idex="0"
|
chunk_idex="0"
|
||||||
chunks_num="1"
|
chunks_num="1"
|
||||||
xtra_opts=$3
|
xtra_opts=$4
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$chunks_num" -le 0 ]; then
|
if [ "$chunks_num" -le 0 ]; then
|
||||||
@ -208,7 +210,7 @@ function build_sketches() # build_sketches <fqbn> <examples-path> <chunk> <total
|
|||||||
local sketchdirname=$(basename $sketchdir)
|
local sketchdirname=$(basename $sketchdir)
|
||||||
local sketchname=$(basename $sketch)
|
local sketchname=$(basename $sketch)
|
||||||
if [ "${sketchdirname}.ino" != "$sketchname" ] \
|
if [ "${sketchdirname}.ino" != "$sketchname" ] \
|
||||||
|| [ -f "$sketchdir/.test.skip" ]; then
|
|| [ -f "$sketchdir/.skip.$target" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
sketchnum=$(($sketchnum + 1))
|
sketchnum=$(($sketchnum + 1))
|
||||||
|
6
.github/scripts/on-push.sh
vendored
6
.github/scripts/on-push.sh
vendored
@ -35,6 +35,7 @@ fi
|
|||||||
|
|
||||||
if [ "$BUILD_PIO" -eq 0 ]; then
|
if [ "$BUILD_PIO" -eq 0 ]; then
|
||||||
# ArduinoIDE ESP32 Test
|
# ArduinoIDE ESP32 Test
|
||||||
|
TARGET="esp32"
|
||||||
FQBN="espressif:esp32:esp32:PSRAM=enabled,PartitionScheme=huge_app"
|
FQBN="espressif:esp32:esp32:PSRAM=enabled,PartitionScheme=huge_app"
|
||||||
source ./.github/scripts/install-arduino-ide.sh
|
source ./.github/scripts/install-arduino-ide.sh
|
||||||
source ./.github/scripts/install-arduino-core-esp32.sh
|
source ./.github/scripts/install-arduino-core-esp32.sh
|
||||||
@ -53,10 +54,11 @@ if [ "$BUILD_PIO" -eq 0 ]; then
|
|||||||
if [ "$CHUNK_INDEX" -eq 0 ]; then
|
if [ "$CHUNK_INDEX" -eq 0 ]; then
|
||||||
bash "$ARDUINO_ESP32_PATH/.github/scripts/check-cmakelists.sh"
|
bash "$ARDUINO_ESP32_PATH/.github/scripts/check-cmakelists.sh"
|
||||||
fi
|
fi
|
||||||
build_sketches "$FQBN" "$ARDUINO_ESP32_PATH/libraries" "$CHUNK_INDEX" "$CHUNKS_CNT"
|
build_sketches "$FQBN" "$TARGET" "$ARDUINO_ESP32_PATH/libraries" "$CHUNK_INDEX" "$CHUNKS_CNT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ArduinoIDE ESP32S2 Test
|
# ArduinoIDE ESP32S2 Test
|
||||||
|
TARGET="esp32s2"
|
||||||
FQBN="espressif:esp32:esp32s2:PSRAM=enabled,PartitionScheme=huge_app"
|
FQBN="espressif:esp32:esp32s2:PSRAM=enabled,PartitionScheme=huge_app"
|
||||||
if [ "$OS_IS_WINDOWS" == "1" ]; then
|
if [ "$OS_IS_WINDOWS" == "1" ]; then
|
||||||
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino" && \
|
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino" && \
|
||||||
@ -65,7 +67,7 @@ if [ "$BUILD_PIO" -eq 0 ]; then
|
|||||||
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino" && \
|
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino" && \
|
||||||
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino"
|
build_sketch "$FQBN" "$ARDUINO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino"
|
||||||
else
|
else
|
||||||
build_sketches "$FQBN" "$ARDUINO_ESP32_PATH/libraries" "$CHUNK_INDEX" "$CHUNKS_CNT"
|
build_sketches "$FQBN" "$TARGET" "$ARDUINO_ESP32_PATH/libraries" "$CHUNK_INDEX" "$CHUNKS_CNT"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
source ./.github/scripts/install-platformio-esp32.sh
|
source ./.github/scripts/install-platformio-esp32.sh
|
||||||
|
0
libraries/BLE/examples/BLE_client/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_client/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_iBeacon/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_iBeacon/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_notify/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_notify/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_scan/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_scan/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_server/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_server/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_uart/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_uart/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_write/.skip.esp32s2
Normal file
0
libraries/BLE/examples/BLE_write/.skip.esp32s2
Normal file
@ -3,7 +3,6 @@
|
|||||||
//
|
//
|
||||||
//This example creates a bridge between Serial and Classical Bluetooth (SPP)
|
//This example creates a bridge between Serial and Classical Bluetooth (SPP)
|
||||||
//and also demonstrate that SerialBT have the same functionalities of a normal Serial
|
//and also demonstrate that SerialBT have the same functionalities of a normal Serial
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
|
||||||
|
|
||||||
#include "BluetoothSerial.h"
|
#include "BluetoothSerial.h"
|
||||||
|
|
||||||
@ -28,7 +27,3 @@ void loop() {
|
|||||||
}
|
}
|
||||||
delay(20);
|
delay(20);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
void setup() {}
|
|
||||||
void loop() {}
|
|
||||||
#endif
|
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
//it creates a bridge between Serial and Classical Bluetooth (SPP)
|
//it creates a bridge between Serial and Classical Bluetooth (SPP)
|
||||||
//this is an extention of the SerialToSerialBT example by Evandro Copercini - 2018
|
//this is an extention of the SerialToSerialBT example by Evandro Copercini - 2018
|
||||||
//
|
//
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
|
||||||
|
|
||||||
#include "BluetoothSerial.h"
|
#include "BluetoothSerial.h"
|
||||||
|
|
||||||
@ -55,8 +54,3 @@ void loop() {
|
|||||||
}
|
}
|
||||||
delay(20);
|
delay(20);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
void setup() {}
|
|
||||||
void loop() {}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
//The only remedy is to delete this saved bound device from your device flash memory
|
//The only remedy is to delete this saved bound device from your device flash memory
|
||||||
//and pair with the other device again.
|
//and pair with the other device again.
|
||||||
//
|
//
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
|
||||||
#include "esp_bt_main.h"
|
#include "esp_bt_main.h"
|
||||||
#include "esp_bt_device.h"
|
#include "esp_bt_device.h"
|
||||||
#include"esp_gap_bt_api.h"
|
#include"esp_gap_bt_api.h"
|
||||||
@ -86,7 +85,3 @@ void setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void loop() {}
|
void loop() {}
|
||||||
#else
|
|
||||||
void setup() {}
|
|
||||||
void loop() {}
|
|
||||||
#endif
|
|
||||||
|
0
libraries/ESP32/examples/HallSensor/.skip.esp32s2
Normal file
0
libraries/ESP32/examples/HallSensor/.skip.esp32s2
Normal file
@ -1,7 +1,6 @@
|
|||||||
//Simple sketch to access the internal hall effect detector on the esp32.
|
//Simple sketch to access the internal hall effect detector on the esp32.
|
||||||
//values can be quite low.
|
//values can be quite low.
|
||||||
//Brian Degger / @sctv
|
//Brian Degger / @sctv
|
||||||
|
|
||||||
int val = 0;
|
int val = 0;
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
0
libraries/SD_MMC/examples/SDMMC_Test/.skip.esp32s2
Normal file
0
libraries/SD_MMC/examples/SDMMC_Test/.skip.esp32s2
Normal file
0
libraries/SD_MMC/examples/SDMMC_time/.skip.esp32s2
Normal file
0
libraries/SD_MMC/examples/SDMMC_time/.skip.esp32s2
Normal file
Reference in New Issue
Block a user