forked from imaNNeo/fl_chart
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (28 loc) · 922 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
analyze:
flutter analyze
checkFormat:
flutter format --set-exit-if-changed --dry-run .
checkstyle:
make analyze && make checkFormat
format:
flutter format .
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:
flutter pub 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