diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2020-10-24 14:56:22 -0300 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2021-09-24 16:21:18 -0300 |
commit | 091946a4785e563dcdf196bea8fcd7e9b85f5330 (patch) | |
tree | 423a5b757df499c2ef912230a89b38b9b1396ba8 /scripts | |
parent | bcd3ffa8b2a259aa7ccc0236e8c5373d0543599e (diff) | |
download | gstreamer-091946a4785e563dcdf196bea8fcd7e9b85f5330.tar.gz |
ci: Port CI to the new monorepo
Main differences with previous setup are:
- No manifest creation
- gst-indent is executed only when the bot is assigned (instead of the manifest task)
- Cerbero jobs are triggered in the cerbero repo
- Remove cerbero and android related files as they now are in cerbero
itself.
- Update `container.ps1` to the new file layout
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/891>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gst-indent-all | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/gst-indent-all b/scripts/gst-indent-all new file mode 100755 index 0000000000..c0580b1aed --- /dev/null +++ b/scripts/gst-indent-all @@ -0,0 +1,15 @@ +#!/bin/bash + +filter_cmd=("cat") +if test -f ".indentignore"; then + filter_args=() + while read -r line; do + if test -n "$line"; then + filter_args+=("-e" "$line") + fi + done < ".indentignore" + if [[ ${#filter_args[@]} -gt 0 ]]; then + filter_cmd=("grep" "-v" "${filter_args[@]}") + fi +fi +git ls-files "*.c" | "${filter_cmd[@]}" | xargs -d '\n' gst-indent |