raportointi muutoksia
CI Feature / Load example-gitea-env.conf to pipeline env (push) Successful in 16s
unit-tests Bats test report
CI Feature / Bats tests (push) Successful in 1m15s
acc-tests Cucumber test report
CI Feature / Cucumber tests (push) Successful in 1m18s
CI Feature / Report Summary (push) Successful in 3s
CI Feature / Load example-gitea-env.conf to pipeline env (push) Successful in 16s
unit-tests Bats test report
CI Feature / Bats tests (push) Successful in 1m15s
acc-tests Cucumber test report
CI Feature / Cucumber tests (push) Successful in 1m18s
CI Feature / Report Summary (push) Successful in 3s
This commit is contained in:
@@ -81,11 +81,10 @@ generate_index() {
|
||||
} > "$REPORT_DIR/index.html"
|
||||
}
|
||||
|
||||
STAGED="reports/${SHA8}/${SUITE}"
|
||||
mkdir -p "$STAGED"
|
||||
mkdir -p "$SUITE"
|
||||
|
||||
if [ "$TOTAL" -eq 1 ]; then
|
||||
cp -a "$REPORT_DIR/." "$STAGED/"
|
||||
cp -a "$REPORT_DIR/." "$SUITE/"
|
||||
sh .ci/scripts/publish-git-pages.sh "$SUITE"
|
||||
|
||||
first_entry=$(echo "$ENTRIES" | head -1)
|
||||
@@ -102,9 +101,9 @@ if [ "$TOTAL" -eq 1 ]; then
|
||||
sh .ci/scripts/report-status.sh "$STATUS" "$DESCRIPTION" "$CONTEXT" "" "$URL"
|
||||
else
|
||||
generate_index
|
||||
cp -a "$REPORT_DIR/." "$STAGED/"
|
||||
cp -a "$REPORT_DIR/." "$SUITE/"
|
||||
sh .ci/scripts/publish-git-pages.sh "$SUITE"
|
||||
sh .ci/scripts/report-status.sh "$STATUS" "$DESCRIPTION" "$CONTEXT" "$SUITE"
|
||||
fi
|
||||
|
||||
rm -rf "$STAGED"
|
||||
rm -rf "$SUITE"
|
||||
|
||||
@@ -19,6 +19,12 @@ PAGES_USER="${GIT_PAGES_PUBLISH_USER:-publish}"
|
||||
|
||||
[ -d "$SUITE" ] || { echo "ERROR: not a directory: $SUITE" >&2; exit 1; }
|
||||
|
||||
EMPTY=1
|
||||
for _f in "$SUITE"/* "$SUITE"/.*; do
|
||||
[ -e "$_f" ] && { EMPTY=0; break; }
|
||||
done
|
||||
[ "$EMPTY" -eq 0 ] || { echo "ERROR: no files to publish in $SUITE" >&2; exit 1; }
|
||||
|
||||
WORK=$(mktemp -d)
|
||||
TAR=$(mktemp)
|
||||
trap 'rm -rf "$WORK" "$TAR"' EXIT
|
||||
|
||||
Reference in New Issue
Block a user