f9cdabfe98
- analysis_options.yaml durci (strict-casts/inference/raw-types + regles) - tool/check.sh : format + analyze + test, garde-fou PATH - mocktail en dev_dependencies - README : contrat "check.sh avant de cocher une etape" - ROADMAP : 0.2 cochee Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
544 B
Bash
Executable File
22 lines
544 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# CI locale Storytime — à passer avant de cocher une étape dans ROADMAP.md.
|
|
# Échoue (exit non nul) dès qu'une vérification ne passe pas.
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
command -v flutter >/dev/null 2>&1 || { echo "flutter absent du PATH"; exit 1; }
|
|
command -v dart >/dev/null 2>&1 || { echo "dart absent du PATH"; exit 1; }
|
|
|
|
echo "==> dart format"
|
|
dart format --set-exit-if-changed .
|
|
|
|
echo "==> flutter analyze"
|
|
flutter analyze
|
|
|
|
echo "==> flutter test"
|
|
flutter test
|
|
|
|
echo ""
|
|
echo "Tout est vert."
|