aboutsummaryrefslogtreecommitdiff
path: root/aux/ci/ci-build.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-02-19 11:22:19 -0300
committerEuAndreh <eu@euandre.org>2021-02-19 11:22:19 -0300
commitdb3f54858183744a9f33cd90f7d69148f7dc5864 (patch)
tree825775db8712da8eb70d60e3d6e7044d53de2fcf /aux/ci/ci-build.sh
parentUpdate aux/ files (diff)
downloadtoph-db3f54858183744a9f33cd90f7d69148f7dc5864.tar.gz
toph-db3f54858183744a9f33cd90f7d69148f7dc5864.tar.xz
Add aux/ci/report.sh
Diffstat (limited to 'aux/ci/ci-build.sh')
-rwxr-xr-xaux/ci/ci-build.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/aux/ci/ci-build.sh b/aux/ci/ci-build.sh
index 81ee1fd..1159204 100755
--- a/aux/ci/ci-build.sh
+++ b/aux/ci/ci-build.sh
@@ -20,20 +20,28 @@ See CI logs with:
git notes --ref=refs/notes/ci-logs show $SHA
git notes --ref=refs/notes/ci-data show $SHA
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
unset GIT_DIR
- CLONE="$(mktemp -d)"
- git clone . "$CLONE"
- cd "$CLONE"
+ REMOTE="$PWD"
+ cd "$(mktemp -d)"
+ git clone "$REMOTE" .
git config --global user.email git@euandre.org
git config --global user.name 'EuAndreh CI'
+ git fetch origin refs/notes/*:refs/notes/*
if [ -f aux/guix/with-container.sh ]; then
RUNNER='./aux/guix/with-container.sh'
@@ -42,7 +50,7 @@ EOF
fi
if [ -f ./configure ]; then
- COMMAND='./configure && make clean check public'
+ COMMAND='./configure && make CC=cc clean check public'
else
COMMAND='make CC=cc clean check public'
fi