From 091946a4785e563dcdf196bea8fcd7e9b85f5330 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sat, 24 Oct 2020 14:56:22 -0300 Subject: 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: --- scripts/gst-indent-all | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/gst-indent-all (limited to 'scripts') 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 -- cgit v1.2.1