forked from MarlinFirmware/Marlin
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 CI test without src filter (emulate Arduino) (MarlinFirmware#24335)
- Loading branch information
1 parent
2b849b7
commit 0934f7c
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters