Skip to content

Commit 78e9a09

Browse files
ellenspJeremy Fairbanks
authored and
Jeremy Fairbanks
committed
👷 CI test without src filter (emulate Arduino) (MarlinFirmware#24335)
1 parent 55128b1 commit 78e9a09

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

buildroot/bin/ci_src_filter

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
# exit on first failure
4+
set -e
5+
6+
SED=$(which gsed sed | head -n1)
7+
FN="platformio.ini"
8+
9+
if [[ $1 == "-n" ]]; then
10+
"${SED}" -i "s/default_src_filter/org_src_filter/" $FN
11+
"${SED}" -i "/org_src_filter/ s/^/default_src_filter = +<src\/*>\n/" $FN
12+
else
13+
git checkout $FN 2>/dev/null
14+
fi

buildroot/tests/mega2560

+8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ set -e
1212
#restore_configs
1313
#exec_test $1 $2 "Default Configuration" "$3"
1414

15+
#
16+
# Build with no source filers
17+
#
18+
restore_configs
19+
ci_src_filter -n
20+
exec_test $1 $2 "Default Configuration | no source filtering" "$3"
21+
ci_src_filter -y
22+
1523
#
1624
# Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
1725
#

0 commit comments

Comments
 (0)