mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2026-08-25 01:05:36 +00:00
tools: add make analyze/test/doctor and unify gradle wrappers
- Add scripts/analyze_all.sh and scripts/test_all.sh that run flutter analyze/test across every app and report a summary - Add scripts/repo_doctor.sh that flags config drift (sdk constraint, analysis_options, pubspec name, applicationId, gradle version, docs, tracked generated files) and exits non-zero for use as a pre-commit gate - Wire these into the Makefile as 'make analyze/test/doctor' and document them in MAINTENANCE.md - Bring bmi_calculator and push_notifications gradle wrappers up to the repo-standard 9.7.0; note push_notifications as a Firebase app requiring google-services.json
This commit is contained in:
14
Makefile
14
Makefile
@@ -1,12 +1,15 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
.PHONY: help packages clean-builds gradle-update docs
|
||||
.PHONY: help packages clean-builds gradle-update docs analyze test doctor
|
||||
|
||||
help: ## Show available commands
|
||||
@echo "Available commands:"
|
||||
@echo ""
|
||||
@echo " make help Show this help"
|
||||
@echo " make packages Run 'flutter packages get' for all apps"
|
||||
@echo " make analyze Run 'flutter analyze' for all apps"
|
||||
@echo " make test Run 'flutter test' for all apps with tests"
|
||||
@echo " make doctor Check every app for configuration drift"
|
||||
@echo " make clean-builds Move all build folders to trash"
|
||||
@echo " make gradle-update Upgrade Gradle wrappers"
|
||||
@echo " make docs Regenerate documentation/EXAMPLES.md"
|
||||
@@ -24,6 +27,15 @@ help: ## Show available commands
|
||||
packages: ## Run flutter packages get for all apps
|
||||
./scripts/get_packages.sh
|
||||
|
||||
analyze: ## Run flutter analyze for all apps
|
||||
./scripts/analyze_all.sh
|
||||
|
||||
test: ## Run flutter test for all apps that have tests
|
||||
./scripts/test_all.sh
|
||||
|
||||
doctor: ## Check all apps for configuration drift
|
||||
./scripts/repo_doctor.sh
|
||||
|
||||
clean-builds: ## Move all build folders to trash
|
||||
./scripts/delete_build_folder.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user