Skip to content

Commit 15fc5f3

Browse files
author
Michael Vasseur
committed
Clean some unneeded code for GHA
GitLab couldn't push statuses directly but GHA will.
1 parent 9741044 commit 15fc5f3

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

.github/jobs/unit-tests.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,27 +47,9 @@ if [ $CODECOVERAGE -eq 1 ]; then
4747
else
4848
STATE=failure
4949
fi
50-
ORIGINAL="gitlab.com/DOMjudge"
51-
REPLACETO="domjudge.gitlab.io/-"
52-
# Copied from CCS
53-
curl https://api.github.com/repos/domjudge/domjudge/statuses/$CI_COMMIT_SHA \
54-
-X POST \
55-
-H "Authorization: token $GH_BOT_TOKEN_OBSCURED" \
56-
-H "Accept: application/vnd.github.v3+json" \
57-
-d "{\"state\": \"$STATE\", \"target_url\": \"${CI_JOB_URL/$ORIGINAL/$REPLACETO}/artifacts/$FILE\", \"description\":\"Symfony deprecations\", \"context\": \"Symfony deprecation\"}"
58-
fi
59-
if [ $UNITSUCCESS -eq 0 ]; then
60-
STATE=success
61-
else
62-
STATE=failure
6350
fi
6451
cp webapp/var/log/test.log "$ARTIFACTS"/test.log
6552

66-
curl https://api.github.com/repos/domjudge/domjudge/statuses/$CI_COMMIT_SHA \
67-
-X POST \
68-
-H "Authorization: token $GH_BOT_TOKEN_OBSCURED" \
69-
-H "Accept: application/vnd.github.v3+json" \
70-
-d "{\"state\": \"$STATE\", \"target_url\": \"${CI_PIPELINE_URL}/test_report\", \"description\":\"Unit tests\", \"context\": \"unit_tests ($version)\"}"
7153
if [ $UNITSUCCESS -ne 0 ]; then
7254
exit 1
7355
fi

0 commit comments

Comments
 (0)