Loading .gitlab-ci.yml +6 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,12 @@ check-merged-ci-config-is-valid: - if [ "$REPO" == "ivas-codec" ]; then repo_url=$REPO_URL_FLOAT; project_id=$PROJECT_ID_FLOAT; fi - if [ "$REPO" == "ivas-basop" ]; then repo_url=$REPO_URL_BASOP; project_id=$PROJECT_ID_BASOP; fi # for testing - | curl -s -o /dev/null -w "%{http_code}\n" -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/49" - | echo '{"content":"stages: [test]"}' | curl -s -o /dev/null -w "%{http_code}\n" -X POST -H "Content-Type: application/json" "https://forge.3gpp.org/rep/api/v4/projects/49/ci/lint" - test_yml="$REPO-ci.yml" - curl --url "$repo_url/./raw/main/.gitlab-ci.yml?inline=false" --output $test_yml - cat $test_yml Loading Loading
.gitlab-ci.yml +6 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,12 @@ check-merged-ci-config-is-valid: - if [ "$REPO" == "ivas-codec" ]; then repo_url=$REPO_URL_FLOAT; project_id=$PROJECT_ID_FLOAT; fi - if [ "$REPO" == "ivas-basop" ]; then repo_url=$REPO_URL_BASOP; project_id=$PROJECT_ID_BASOP; fi # for testing - | curl -s -o /dev/null -w "%{http_code}\n" -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/49" - | echo '{"content":"stages: [test]"}' | curl -s -o /dev/null -w "%{http_code}\n" -X POST -H "Content-Type: application/json" "https://forge.3gpp.org/rep/api/v4/projects/49/ci/lint" - test_yml="$REPO-ci.yml" - curl --url "$repo_url/./raw/main/.gitlab-ci.yml?inline=false" --output $test_yml - cat $test_yml Loading