Files
fl_chart/Makefile
zypherift c7e3f36b06
Some checks failed
Code Coverage / upload (push) Has been cancelled
Gh-Pages / build (push) Has been cancelled
Code Verification / verify (push) Has been cancelled
1.0.0
2025-08-09 18:17:34 +02:00

45 lines
1.1 KiB
Makefile

ifeq ($(OS),Windows_NT)
FIND_CMD=dir /S /B lib\*.dart test\*.dart | findstr /V .mocks.dart
else
FIND_CMD=find lib test -name '*.dart' -not -name '*.mocks.dart'
endif
analyze:
flutter analyze
checkFormat:
dart format -o none --set-exit-if-changed $$( $(FIND_CMD) )
checkstyle:
make analyze && make checkFormat
format:
dart format $$( $(FIND_CMD) )
runTests:
flutter test
checkoutToPR:
git fetch origin pull/$(id)/head:pr-$(id) --force; \
git checkout pr-$(id)
# Tells you in which version this commit has landed
findVersion:
git describe --contains $(commit) | sed 's/~.*//'
# Runs both `make runTests` and `make checkstyle`. Use this before pushing your code.
sure:
make runTests && make checkstyle
# To create generated files (for example mock files in unit_tests)
codeGen:
dart run build_runner build --delete-conflicting-outputs
showTestCoverage:
flutter test --coverage
genhtml coverage/lcov.info -o coverage/html
source ./scripts/makefile_scripts.sh && open_link "coverage/html/index.html"
buildRunner:
flutter packages pub run build_runner build --delete-conflicting-outputs