-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (34 loc) · 1.37 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
.PHONY: i18n check-i18n check-code style test test-integration test-unit test-ui update-goldens launcher-icon splash-screen check-code check-files apk
i18n:
dart run slang generate
check-i18n:
dart run slang analyze
check-code:
dart run dart_code_linter:metrics check-unused-code lib
check-files:
dart run dart_code_linter:metrics check-unused-files lib
style:
dart format .
flutter analyze
dart run dart_code_linter:metrics analyze . --set-exit-on-violation-level=warning
test:
flutter test --coverage --test-randomize-ordering-seed=$(or $(seed),random)
dart run test_cov_console --exclude=static,domain/interfaces,injector.dart
test-integration:
flutter test integration_test/app_test.dart
test-unit:
flutter test test/domain test/infrastructure --coverage --test-randomize-ordering-seed=$(or $(seed),random)
dart run test_cov_console --exclude=static,ui,domain/interfaces,injector.dart
test-ui:
flutter test test/ui --coverage --test-randomize-ordering-seed=$(or $(seed),random) --dart-define=CI=true
dart run test_cov_console --exclude=static,domain,infrastructure,injector.dart
update-goldens:
flutter test test/ui/ --update-goldens --tags=golden
splash-screen:
dart run flutter_native_splash:create --path=splash_screen.yaml
apk:
flutter build apk \
--release \
--obfuscate \
--split-debug-info=./build/app/outputs/symbols \
--dart-define-from-file=.env.json