mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
CI - build with arduino-cli (#9241)
Sync with GCC14 branch test scripts Remove explicit IDE, HARDWARE & LIBRARIES envirnoment in workflows in favour of script defaults Remove explicit dependency on IDE & HARDWARE path, assume arduino-cli default paths Remove explicit library install for platformio, share library path & downloaded libraries with arduino Bump ConfigFile dependencies, set ArduinoJson to v7 & update blob install script
This commit is contained in:
53
tests/lib-skip-ino.sh
Normal file
53
tests/lib-skip-ino.sh
Normal file
@ -0,0 +1,53 @@
|
||||
# return 0 if this sketch should not be built in CI (for other archs, not needed, etc.)
|
||||
function skip_ino()
|
||||
{
|
||||
local ino=$1
|
||||
|
||||
case "$ino" in
|
||||
*"/#attic/"* | \
|
||||
*"/AvrAdcLogger/"* | \
|
||||
*"/RtcTimestampTest/"* | \
|
||||
*"/SoftwareSpi/"* | \
|
||||
*"/TeensyDmaAdcLogger/"* | \
|
||||
*"/TeensyRtcTimestamp/"* | \
|
||||
*"/TeensySdioDemo/"* | \
|
||||
*"/TeensySdioLogger/"* | \
|
||||
*"/UnicodeFilenames/"* | \
|
||||
*"/UserChipSelectFunction/"* | \
|
||||
*"/UserSPIDriver/"* | \
|
||||
*"/debug/"* | \
|
||||
*"/examplesV1/"* | \
|
||||
*"/onewiretest/"*)
|
||||
return 0
|
||||
;;
|
||||
*"Teensy"*)
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
# return reason if this sketch is not the main one or it is explicitly disabled with .test.skip in its directory
|
||||
function skip_sketch()
|
||||
{
|
||||
local sketch=$1
|
||||
|
||||
local sketchdir
|
||||
sketchdir=$(dirname $sketch)
|
||||
|
||||
local sketchdirname
|
||||
sketchdirname=$(basename $sketchdir)
|
||||
|
||||
local sketchname
|
||||
sketchname=$(basename $sketch)
|
||||
|
||||
if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then
|
||||
echo "Skipping $sketch (not the main sketch file)"
|
||||
fi
|
||||
if skip_ino "$sketch" || [[ -f "$sketchdir/.test.skip" ]]; then
|
||||
echo "Skipping $sketch"
|
||||
fi
|
||||
}
|
Reference in New Issue
Block a user