1
0
Fork 0
mutter-performance-source/.gitlab-ci/simple-junit-report.sh
Carlos Garnacho 3207b9d8c5 ci: Check repo sanity
Check that the container registry in user repositories is
enabled, and issue a more descriptive error around it. Lifted
from Tracker.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3681>
2024-04-02 11:16:31 +02:00

18 lines
419 B
Bash
Executable file

#!/bin/bash
OUTFILE=$1
NAME=$2
MESSAGE=$3
cat >$OUTFILE <<EOF
<?xml version='1.0' encoding='utf-8'?>
<testsuites tests="1" errors="0" failures="1">
<testsuite name="repo-sanity" tests="1" errors="0" failures="1">
<testcase name="$NAME" classname="repo-sanity">
<failure message="$MESSAGE"/>
</testcase>
</testsuite>
</testsuites>
EOF
# Also echo the message in stdout for good measure
echo $MESSAGE