-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (43 loc) · 1.77 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# ==================================================================================================
# Setup
# ==================================================================================================
setup: install_precommit install_prepush install_commitmsg install ## all setup for project first local execution goes here
install: ## install flutter dependencies
flutter pub get
install_precommit: ## install precommit hook
mkdir -p .git/hooks
cp scripts/pre-commit.sh .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
install_prepush: ## install prepush hook
mkdir -p .git/hooks
cp scripts/pre-push.sh .git/hooks/pre-push
chmod +x .git/hooks/pre-push
install_commitmsg: ## install prepush hook
mkdir -p .git/hooks
cp scripts/commit-msg.sh .git/hooks/commit-msg
chmod +x .git/hooks/commit-msg
# ==================================================================================================
# Helpers
# ==================================================================================================
format:
flutter format
list_simulators:
xcrun instruments -s
# ==================================================================================================
# Tests
# ==================================================================================================
lint:
flutter analyze
unit_test:
flutter test --coverage
ui_test:
flutter drive --target=test_driver/app.dart
# ==================================================================================================
# Build
# ==================================================================================================
build_android:
flutter build apk --debug --split-per-abi
build_ios:
flutter build ios --release --no-codesign
deploy-to-internal:
bash scripts/release_internal.sh