SPB Git

Repository Public MIT

build-catalog.sh 2.7 KB 57 lines shellscript

1#!/usr/bin/env bash2# =============================================================================3#                  SP BOUCHER | INFRASTRUCTURE & AUTOMATION4#             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project          : ORIX Astra8# File             : Scripts/build-catalog.sh9# Module           : Scripts10# Repository       : https://git.spboucher.ai/orix-astra11# Created          : 2026-11-2212# Last Modified    : 2026-11-2213#14# Author           : Simon-Pierre Boucher15# Position         : Professor of Finance16# Institution      : Université du Québec en Outaouais (UQO)17# Organization     : SP Boucher18# Website          : https://spboucher.ai19# Git              : https://git.spboucher.ai20#21# Preferred Contact: support@spboucher.ai22# Technical Contact: dev@spboucher.ai23# Security/Admin   : admin@spboucher.ai24#25# Copyright (c) 202626# Simon-Pierre Boucher27# All rights reserved where applicable. This file is governed by the28# applicable project license, copyright notices and relevant law.29# Existing third-party rights and notices remain unaffected.30#31# License          : Proprietary, all rights reserved (see license file)32# License File     : LICENSE33#34# Do not embed credentials, private keys, access tokens,35# certificates or confidential personal information.36#37# =============================================================================38# END OF SP BOUCHER SOURCE HEADER39# =============================================================================4041# Usage: Scripts/build-catalog.sh   — regenerates docs/catalog/catalog.json and docs/MODEL_COMPATIBILITY.md from the records in build/verify/.42#43# Only models whose record says "passed" (and whose provenance is clear) enter the catalog; candidates without a record are listed44# as "verification in progress". Run it again whenever Scripts/verify-models.sh has verified another model.45# Environment: ASTRA_VERIFY_PACKAGE_DIR (package to build from, default: repository root; use build/local-pkg while other modules46#              do not compile) and ASTRA_CATALOG_SCRATCH (SwiftPM scratch directory, default build/spm-catalog, separate from the47#              verification run so both can work at the same time).48set -euo pipefail49ROOT="$(cd "$(dirname "$0")/.." && pwd)"50PKG="${ASTRA_VERIFY_PACKAGE_DIR:-$ROOT}"51SCRATCH="${ASTRA_CATALOG_SCRATCH:-$ROOT/build/spm-catalog}"52export ASTRA_PROJECT_ROOT="$ROOT"53cd "$PKG"54ASTRA_VERIFY_REPORT=1 swift test --disable-keychain --scratch-path "$SCRATCH" --filter generateCatalogAndCompatibilityReport 2>&1 \55  | grep -E "^\[report|✔ Test generate|✘ Test generate|recorded an issue|error:" | cut -c1-40056ls -l "$ROOT/docs/catalog/catalog.json" "$ROOT/docs/MODEL_COMPATIBILITY.md"57
Files main
Menu

Theme