forked from filipemorelli/flutter_mobx_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 818 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 818 Bytes
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
SHELL := /bin/bash
# Generate flavorizr native configurations.
# This will override app.dart, flavors.dart and all main_X.dart.
# Only run if you know what you are doing.
# After running, the cited files need to be reset to their previous state.
gen-flavors:
flutter pub run flutter_flavorizr
# Generate code
gen-code:
flutter pub run build_runner build --delete-conflicting-outputs
# Generate code and format files
gen-code-and-format:
make gen-code
dart format . -l 120
# CI Tests
ci-tests:
dart format --set-exit-if-changed . -l 120
@if [ "$(genCode)" = "true" ]; then make gen-code; fi
flutter analyze
flutter test -r expanded
# Complete remote CI pipeline
remote-ci-pipeline-checks:
flutter packages pub get
make ci-tests genCode=true
flutter build apk --debug --flavor dev -t lib/main_dev.dart