diff options
author | EuAndreh <eu@euandre.org> | 2021-08-21 05:49:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-21 05:49:05 -0300 |
commit | de2c1beae4690626597b50abdba9feb38a5be5f7 (patch) | |
tree | 2f9df5267b7f85436c28f02a7eff036ed8b21f5b /aux | |
parent | src/tests-lib.c: Move testing helper function and share it with other files (diff) | |
download | gistatic-de2c1beae4690626597b50abdba9feb38a5be5f7.tar.gz gistatic-de2c1beae4690626597b50abdba9feb38a5be5f7.tar.xz |
aux/: Update
Diffstat (limited to 'aux')
-rwxr-xr-x | aux/ci/report.sh | 54 | ||||
-rwxr-xr-x | aux/workflow/assert-changelog.sh | 10 | ||||
-rwxr-xr-x | aux/workflow/assert-readme.sh | 4 | ||||
-rwxr-xr-x | aux/workflow/assert-todos.sh | 2 | ||||
-rwxr-xr-x | aux/workflow/repocheck.sh | 5 |
5 files changed, 41 insertions, 34 deletions
diff --git a/aux/ci/report.sh b/aux/ci/report.sh index 7fa3d08..2b50106 100755 --- a/aux/ci/report.sh +++ b/aux/ci/report.sh @@ -48,27 +48,29 @@ done cat <<EOF >> "$OUT" <!DOCTYPE html> <html lang="en"> - <head> - <meta charset="UTF-8" /> - <meta name="viewport" - content="width=device-width, initial-scale=1" /> - <link rel="icon" type="image/svg+xml" href="favicon.svg" /> - <title>CI logs for $PROJECT</title> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <meta name="description" content="CI logs for $PROJECT" /> + <link rel="icon" type="image/svg+xml" href="favicon.svg" /> + <title>$PROJECT - CI logs</title> - <style> - pre { - display: inline; - } - </style> - </head> - <body> - <h1> - CI logs for - <a href="https://$TLD/$PROJECT/en/"> - $PROJECT - </a> - </h1> - <ul> + <style> + pre { + display: inline; + } + ol { + list-style-type: disc; + } + </style> + </head> + <body> + <main> + <h1> + CI logs for + <a href="https://$TLD/$PROJECT/en/">$PROJECT</a> + </h1> + <ol> EOF for f in $(find "$OUTDIR/ci-data/" -type f | LANG=C.UTF-8 sort -r); do @@ -83,17 +85,15 @@ for f in $(find "$OUTDIR/ci-data/" -type f | LANG=C.UTF-8 sort -r); do fi cat <<EOF >> "$OUT" - <li> - <a href="ci-logs/$FILENAME"> - $STATUS_MARKER <pre>$FILENAME</pre> - </a> - </li> + <li> + <a href="ci-logs/$FILENAME">$STATUS_MARKER <pre>$FILENAME</pre></a> + </li> EOF done cat <<EOF >> "$OUT" - </ul> - </body> + </ol> + </body> </html> EOF diff --git a/aux/workflow/assert-changelog.sh b/aux/workflow/assert-changelog.sh index ca86407..4acc81b 100755 --- a/aux/workflow/assert-changelog.sh +++ b/aux/workflow/assert-changelog.sh @@ -52,10 +52,12 @@ assert() { fi } -for VVERSION in $(git tag); do - DATE="$(git log -1 --format=%cd --date=short "$VVERSION")" - assert "$DATE" "$VVERSION" -done +if [ -e .git ]; then + for VVERSION in $(git tag); do + DATE="$(git log -1 --format=%cd --date=short "$VVERSION")" + assert "$DATE" "$VVERSION" + done +fi # "$@" represents a list of tags to be also included in the verification. for VVERSION in "$@"; do diff --git a/aux/workflow/assert-readme.sh b/aux/workflow/assert-readme.sh index dbe657e..1e49bfb 100755 --- a/aux/workflow/assert-readme.sh +++ b/aux/workflow/assert-readme.sh @@ -1,6 +1,10 @@ #!/bin/sh set -eu +if [ ! -e .git ]; then + exit +fi + TLD="$(cat aux/tld.txt)" . aux/lib.sh diff --git a/aux/workflow/assert-todos.sh b/aux/workflow/assert-todos.sh index c21ebb9..bc4907d 100755 --- a/aux/workflow/assert-todos.sh +++ b/aux/workflow/assert-todos.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -if git grep FIXME | grep -v '^TODOs.md' | +if [ -e .git ] && git grep FIXME | grep -v '^TODOs.md' | grep -v '^aux/workflow/assert-todos.sh'; then echo "Found dangling FIXME markers on the project." echo "You should write them down properly on TODOs.md." diff --git a/aux/workflow/repocheck.sh b/aux/workflow/repocheck.sh index 5f83708..688410a 100755 --- a/aux/workflow/repocheck.sh +++ b/aux/workflow/repocheck.sh @@ -167,9 +167,10 @@ assert_clean_checkout() { cd "$CHECKOUTDIR" FILECOUNT="$(find . -type f | wc -l)" - make check clean + make clean public dev-check + make clean if [ "$FILECOUNT" != "$(find . -type f | wc -l)" ]; then - echo 'File count mismatch after "make check clean".' >&2 + echo 'File count mismatch after "make clean".' >&2 echo "Checkout directory: $CHECKOUTDIR" >&2 exit 1 fi |