Commit 834ba5d9 authored by Jan Kiene's avatar Jan Kiene
Browse files

different patching

parent b96006b9
Loading
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -31,8 +31,8 @@ check-merged-ci-config-is-valid:
        - ivas-basop
  script:
    - set -euxo pipefail
    - if [ "$REPO" == "ivas-codec" ]; then repo_url=$REPO_URL_FLOAT; patch_yaml="main-float.yml"; fi
    - if [ "$REPO" == "ivas-basop" ]; then repo_url=$REPO_URL_BASOP; patch_yaml="main-basop-yml";fi
    - if [ "$REPO" == "ivas-codec" ]; then repo_url=$REPO_URL_FLOAT; patch_yml="main-float.yml"; fi
    - if [ "$REPO" == "ivas-basop" ]; then repo_url=$REPO_URL_BASOP; patch_yml="main-basop-yml";fi

    # get the CI file from the respective repo without lengthy clone
    - test_yml="$REPO-ci.yml"
@@ -51,9 +51,9 @@ check-merged-ci-config-is-valid:

    # patch the yaml file to include the stuff we have locally in this branch
    - |
      sed -i".bak" -E '/^include:/,/^[^[:space:]]/c\                                                                                                                                                                                                                                                                              (base)
      include:\
        - local: ${patch_yaml}' $test_yml
      sed '/^include:/,$d' $test_yml > $test_yml
    - |
      echo -e "include:\n  - local: ${patch_yml}\n" >> $test_yml
    - cat $test_yml

    # lint patched yaml