Skip to content

Commit

Permalink
👷 CI test without src filter (emulate Arduino) (MarlinFirmware#24335)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and freakydude committed Jun 29, 2022
1 parent 2b849b7 commit 0934f7c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions buildroot/bin/ci_src_filter
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

# exit on first failure
set -e

SED=$(which gsed sed | head -n1)
FN="platformio.ini"

if [[ $1 == "-n" ]]; then
"${SED}" -i "s/default_src_filter/org_src_filter/" $FN
"${SED}" -i "/org_src_filter/ s/^/default_src_filter = +<src\/*>\n/" $FN
else
git checkout $FN 2>/dev/null
fi
8 changes: 8 additions & 0 deletions buildroot/tests/mega2560
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ set -e
#restore_configs
#exec_test $1 $2 "Default Configuration" "$3"

#
# Build with no source filers
#
restore_configs
ci_src_filter -n
exec_test $1 $2 "Default Configuration | no source filtering" "$3"
ci_src_filter -y

#
# Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
#
Expand Down

0 comments on commit 0934f7c

Please sign in to comment.