Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ steps:
git diff origin/main --name-only > _changed_files
sed 's:[^/]*$::' _changed_files > _changed_folders
sort -u -o _changed_folders{,}
echo Folders with changes:
echo "Folders with changes:"
cat _changed_folders
# Do not prune if changing tests themselves
Expand All @@ -44,7 +44,7 @@ steps:
# Remove base folders without changes
for d in *; do
if ! grep -q "^$d$" _changed_folders && [[ "$d" != "test" ]]; then
if ! (grep -q "^$d" _changed_folders || [[ "test _changed_folders" =~ "$d" ]]); then
rm -rf $d;
fi
done
Expand All @@ -60,7 +60,7 @@ steps:
find . -empty -type d -delete
# Report remaining folders
echo Folders in scope for tests:
echo -n "Folders in scope for tests:"
find . -type d -printf '%P\n'
- id: prepare
Expand Down
Loading