Files
Wallenc/Report/testing-export/scripts/build.sh

17 lines
499 B
Bash
Executable File

#!/usr/bin/env bash
# Сборка четырёх PDF для загрузки по критериям тестирования.
set -euo pipefail
REPORT="$(cd "$(dirname "$0")/../.." && pwd)"
EXPORT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$REPORT"
python3 scripts/gen_test_listings.py
for stem in 01_plan_testing 02_test_sets 03_automation_code 04_test_report; do
echo "Compiling $stem.typ ..."
typst compile --root .. "$EXPORT/$stem.typ" "$EXPORT/$stem.pdf"
done
echo "Done: $EXPORT/*.pdf"