-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
40 lines (30 loc) · 1.04 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
.PHONY: format get test publish deploy server-up server-down coverage analyze check pana
build:
@dart run tool/runner.dart
@dart format -l 80 --fix .
format:
@echo "Formatting the code"
@dart format -l 80 --fix .
@dart fix --apply .
get:
@dart pub get
test: get
@dart test --debug --coverage=.coverage --platform vm
publish:
@yes | dart pub publish
deploy: 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
analyze: get format
@echo "Analyze the code"
@dart analyze --fatal-infos --fatal-warnings
check: analyze
@dart pub global activate pana
@pana --json --no-warning --line-length 80 > log.pana.json
pana: check