diff options
-rw-r--r-- | Makefile.in | 2 | ||||
-rwxr-xr-x | aux/ci/ci-build.sh | 7 | ||||
-rwxr-xr-x | aux/ci/report.sh | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 91a3704..04c5110 100644 --- a/Makefile.in +++ b/Makefile.in @@ -97,7 +97,7 @@ public: README.md TODOs.md CHANGELOG.md $(manpages) sh aux/workflow/TODOs.sh $(NAME_UC) $(NAME) $(MAILING_LIST) sh aux/workflow/README.sh $(NAME_UC) $(NAME) sh aux/workflow/commonmark.sh $(NAME_UC) CHANGELOG.md - sh aux/ci/report.sh $(NAME_UC) + sh aux/ci/report.sh $(NAME) for m in $(manpages); do groff -m man -Thtml $$m > public/`basename $$m`.html; done .PHONY: all clean check dev-check dist install uninstall 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" |