From fbac930d7c5a04552023bce4abf48ea022e5cc54 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Tue, 12 May 2020 01:48:34 +0300 Subject: [PATCH] skip some examples --- .github/scripts/install-arduino-ide.sh | 26 ++++++++++--------- .github/scripts/on-push.sh | 6 +++-- .../BLE/examples/BLE_client/.skip.esp32s2 | 0 .../BLE/examples/BLE_iBeacon/.skip.esp32s2 | 0 .../BLE/examples/BLE_notify/.skip.esp32s2 | 0 libraries/BLE/examples/BLE_scan/.skip.esp32s2 | 0 .../BLE/examples/BLE_server/.skip.esp32s2 | 0 .../BLE_server_multiconnect/.skip.esp32s2 | 0 libraries/BLE/examples/BLE_uart/.skip.esp32s2 | 0 .../BLE/examples/BLE_write/.skip.esp32s2 | 0 .../examples/SerialToSerialBT/.skip.esp32s2 | 0 .../SerialToSerialBT/SerialToSerialBT.ino | 5 ---- .../examples/SerialToSerialBTM/.skip.esp32s2 | 0 .../SerialToSerialBTM/SerialToSerialBTM.ino | 6 ----- .../bt_remove_paired_devices/.skip.esp32s2 | 0 .../bt_remove_paired_devices.ino | 5 ---- .../ESP32/examples/HallSensor/.skip.esp32s2 | 0 .../ESP32/examples/HallSensor/HallSensor.ino | 1 - .../SD_MMC/examples/SDMMC_Test/.skip.esp32s2 | 0 .../SD_MMC/examples/SDMMC_time/.skip.esp32s2 | 0 .../examples/SimpleBleDevice/.skip.esp32s2 | 0 21 files changed, 18 insertions(+), 31 deletions(-) create mode 100644 libraries/BLE/examples/BLE_client/.skip.esp32s2 create mode 100644 libraries/BLE/examples/BLE_iBeacon/.skip.esp32s2 create mode 100644 libraries/BLE/examples/BLE_notify/.skip.esp32s2 create mode 100644 libraries/BLE/examples/BLE_scan/.skip.esp32s2 create mode 100644 libraries/BLE/examples/BLE_server/.skip.esp32s2 create mode 100644 libraries/BLE/examples/BLE_server_multiconnect/.skip.esp32s2 create mode 100644 libraries/BLE/examples/BLE_uart/.skip.esp32s2 create mode 100644 libraries/BLE/examples/BLE_write/.skip.esp32s2 create mode 100644 libraries/BluetoothSerial/examples/SerialToSerialBT/.skip.esp32s2 create mode 100644 libraries/BluetoothSerial/examples/SerialToSerialBTM/.skip.esp32s2 create mode 100644 libraries/BluetoothSerial/examples/bt_remove_paired_devices/.skip.esp32s2 create mode 100644 libraries/ESP32/examples/HallSensor/.skip.esp32s2 create mode 100644 libraries/SD_MMC/examples/SDMMC_Test/.skip.esp32s2 create mode 100644 libraries/SD_MMC/examples/SDMMC_time/.skip.esp32s2 create mode 100644 libraries/SimpleBLE/examples/SimpleBleDevice/.skip.esp32s2 diff --git a/.github/scripts/install-arduino-ide.sh b/.github/scripts/install-arduino-ide.sh index e0c5b78b..eacf55bc 100755 --- a/.github/scripts/install-arduino-ide.sh +++ b/.github/scripts/install-arduino-ide.sh @@ -116,9 +116,10 @@ function build_sketch(){ # build_sketch [extra-options] $win_opts $xtra_opts "$sketch" } -function count_sketches() # count_sketches +function count_sketches() # count_sketches { local examples="$1" + local target="$2" rm -rf sketches.txt if [ ! -d "$examples" ]; then touch sketches.txt @@ -133,7 +134,7 @@ function count_sketches() # count_sketches if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then continue fi; - if [[ -f "$sketchdir/.test.skip" ]]; then + if [[ -f "$sketchdir/.skip.$target" ]]; then continue fi echo $sketch >> sketches.txt @@ -142,24 +143,25 @@ function count_sketches() # count_sketches return $sketchnum } -function build_sketches() # build_sketches [extra-options] +function build_sketches() # build_sketches [extra-options] { local fqbn=$1 - local examples=$2 - local chunk_idex=$3 - local chunks_num=$4 - local xtra_opts=$5 + local target="$2" + local examples=$3 + local chunk_idex=$4 + local chunks_num=$5 + local xtra_opts=$6 - if [ "$#" -lt 2 ]; then + if [ "$#" -lt 3 ]; then echo "ERROR: Illegal number of parameters" - echo "USAGE: build_sketches [ ] [extra-options]" + echo "USAGE: build_sketches [ ] [extra-options]" return 1 fi - if [ "$#" -lt 4 ]; then + if [ "$#" -lt 5 ]; then chunk_idex="0" chunks_num="1" - xtra_opts=$3 + xtra_opts=$4 fi if [ "$chunks_num" -le 0 ]; then @@ -208,7 +210,7 @@ function build_sketches() # build_sketches