Print theories that are not part of session as part of the CI build.

This commit is contained in:
Achim D. Brucker 2023-03-01 08:49:56 +00:00
parent 9f5473505e
commit ae514aea18
2 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,7 @@ pipeline:
build:
image: docker.io/logicalhacking/isabelle2022
commands:
- ./.woodpecker/unchecked-theories
- ./.woodpecker/check_external_file_refs
- export ARTIFACT_DIR=$CI_WORKSPACE/.artifacts/$CI_REPO/$CI_BRANCH/$CI_BUILD_NUMBER/$LATEX
- mkdir -p $ARTIFACT_DIR

8
.woodpecker/unchecked-theories Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
PWD=`pwd`
TMPDIR=`mktemp -d`
isabelle build -D . -l -n | grep $PWD | sed -e "s| *${PWD}/||" | sort -u | grep thy$ > ${TMPDIR}/sessions-thy-files.txt
find * -type f | sort -u | grep thy$ > ${TMPDIR}/actual-thy-files.txt
echo "Theories that are not part of a Isabelle session:"
echo "================================================="
comm -13 ${TMPDIR}/sessions-thy-files.txt ${TMPDIR}/actual-thy-files.txt