From d5281eba0512c0a56769ec2addf26b77e8c41bae Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 18 Feb 2021 00:17:14 -0300 Subject: Generate report.sh after CI finishes --- aux/ci/ci-build.sh | 7 +++++++ aux/ci/report.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'aux/ci') diff --git a/aux/ci/ci-build.sh b/aux/ci/ci-build.sh index 7e17a7c..1159204 100755 --- a/aux/ci/ci-build.sh +++ b/aux/ci/ci-build.sh @@ -24,6 +24,13 @@ EOF git notes --ref=refs/notes/ci-data add -f -m "$STATUS $FILENAME" git notes --ref=refs/notes/ci-logs add -f -F "$LOGFILE" git notes append -m "$NOTE" + + cd - + if [ -f ./aux/ci/report.sh ]; then + sh aux/ci/report.sh "$PACKAGE" + rsync -avzzP public/ "/srv/http/$PACKAGE/" --delete + fi + printf "\n>>>\n>>> CI logs added as Git note.\n>>>\n>>> Run status was %s" "$STATUS" } trap finish EXIT diff --git a/aux/ci/report.sh b/aux/ci/report.sh index b82c061..cb7242f 100755 --- a/aux/ci/report.sh +++ b/aux/ci/report.sh @@ -1,5 +1,5 @@ #!/bin/sh -set -eu +set -eux PROJECT_UC="$1" -- cgit v1.2.3