-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
45 lines (35 loc) · 1.12 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
.PHONY: format get upgrade outdated analyze deploy coverage
format:
@echo "Formatting the code"
@dart format -l 80 --fix .
@dart fix --apply .
get:
@echo "Geting dependencies"
@dart pub get
upgrade: get
@echo "Upgrading dependencies"
@dart pub upgrade
outdated:
@echo "Outdated check"
@dart pub outdated
analyze: get format
@echo "Analyze the code"
@dart analyze --fatal-infos --fatal-warnings
check: analyze
@dart pub publish --dry-run
@dart pub global activate pana
@pana --json --no-warning --line-length 80 > log.pana.json
pana: check
deploy:
@echo "Publish"
@dart pub publish
coverage: get
@dart test --concurrency=6 --platform vm --coverage=coverage test/
@dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.packages --report-on=lib
# @mv coverage/lcov.info coverage/lcov.base.info
# @lcov -r coverage/lcov.base.info -o coverage/lcov.base.info "lib/**.freezed.dart" "lib/**.g.dart"
# @mv coverage/lcov.base.info coverage/lcov.info
@lcov --list coverage/lcov.info
@genhtml -o coverage coverage/lcov.info
test: get
@dart test --debug --coverage=.coverage --platform chrome,vm