spb/traite-evaluation-qc
Public
1#!/usr/bin/env bash2# Validation d'un chapitre livré : compilation isolée, tests, fusion des registres, vérification, commit.3set -uo pipefail4N=$(printf "%02d" "$1"); ROOT="$(cd "$(dirname "$0")/.." && pwd)"; cd "$ROOT"5tools/compile_chapter.sh "$1" | head -16T="analysis/python/tests/test_ch$N.py"; [[ -f "$T" ]] && python3 -m pytest -q "$T" 2>&1 | tail -1 || echo "pas de test $T"7python3 -c "import re;t=open('manuscript/chapters/ch$N.tex').read();print('mots',len(re.sub(r'\\\\[a-zA-Z]+|[{}%\$&_^~]',' ',t).split()),'| stub' if '\\\\stubchapter' in t else '| rédigé','| figures',t.count('includegraphics')+t.count('begin{tikzpicture}'),'| tableaux',t.count('begin{table}')+t.count('begin{longtable}'),'| exercices',t.count('begin{exercice}'))"8python3 tools/merge_sources.py | tail -29python3 tools/check_manuscript.py --no-log | tail -210git add -A && git commit -qm "Ch. $1 livré et validé (compilation isolée, tests, fusion des registres)1112Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>" && git push -q && echo pushed13