diff options
author | EuAndreh <eu@euandre.org> | 2021-06-23 07:52:21 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-23 07:52:21 -0300 |
commit | ec0782ce4bb8494cc8692aff34f8a2373ec45f9f (patch) | |
tree | 9f2fa560ac04f880a6fbc6e63d9813c806d152d9 /aux/ci | |
parent | aux/guix/with-container.sh: Remove -x sh option (diff) | |
download | git-permalink-ec0782ce4bb8494cc8692aff34f8a2373ec45f9f.tar.gz git-permalink-ec0782ce4bb8494cc8692aff34f8a2373ec45f9f.tar.xz |
git grep -l PACKAGE aux/ | xargs sed -i 's/PACKAGE/PROJECT/g'
Diffstat (limited to 'aux/ci')
-rwxr-xr-x | aux/ci/ci-build.sh | 6 | ||||
-rwxr-xr-x | aux/ci/git-post-receive.sh | 6 | ||||
-rwxr-xr-x | aux/ci/git-pre-push.sh | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/aux/ci/ci-build.sh b/aux/ci/ci-build.sh index 60af813..9f89205 100755 --- a/aux/ci/ci-build.sh +++ b/aux/ci/ci-build.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eux -PACKAGE="$1" +PROJECT="$1" LOGS_DIR="$2" read -r _ SHA _ # oldrev newrev refname FILENAME="$(date -Is)-$SHA.log" @@ -26,8 +26,8 @@ EOF git notes append -m "$NOTE" cd - - sh aux/ci/report.sh "$PACKAGE" - rsync -av public/ "/srv/http/$PACKAGE/" --delete + sh aux/ci/report.sh "$PROJECT" + rsync -av public/ "/srv/http/$PROJECT/" --delete printf "\n>>>\n>>> CI logs added as Git note.\n>>>\n>>> Run status was %s" "$STATUS" } diff --git a/aux/ci/git-post-receive.sh b/aux/ci/git-post-receive.sh index ee8075f..167ac4a 100755 --- a/aux/ci/git-post-receive.sh +++ b/aux/ci/git-post-receive.sh @@ -9,6 +9,6 @@ for n in $(seq 0 $((GIT_PUSH_OPTION_COUNT - 1))); do fi done -PACKAGE="$(basename "$PWD" | cut -d. -f1)" # remove .git suffix -LOGS_DIR="/opt/ci/$PACKAGE/logs" -"/opt/ci/$PACKAGE/ci-build.sh" "$PACKAGE" "$LOGS_DIR" +PROJECT="$(basename "$PWD" | cut -d. -f1)" # remove .git suffix +LOGS_DIR="/opt/ci/$PROJECT/logs" +"/opt/ci/$PROJECT/ci-build.sh" "$PROJECT" "$LOGS_DIR" diff --git a/aux/ci/git-pre-push.sh b/aux/ci/git-pre-push.sh index e73b9b8..cccd6e5 100755 --- a/aux/ci/git-pre-push.sh +++ b/aux/ci/git-pre-push.sh @@ -3,9 +3,9 @@ set -eux TLD="$(cat aux/tld.txt)" -PACKAGE="$(basename "$PWD")" -LOGS_DIR="/opt/ci/$PACKAGE/logs" -REMOTE_GIT_DIR="/srv/git/$PACKAGE.git" +PROJECT="$(basename "$PWD")" +LOGS_DIR="/opt/ci/$PROJECT/logs" +REMOTE_GIT_DIR="/srv/git/$PROJECT.git" DESCRIPTION="$(mktemp)" if [ -f description ] |