-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 899 Bytes
/
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
SHELL=/bin/bash
# $$$$$$$$$ Testing $$$$$$$$$$
test-and-show-coverage: run-tests coverage-html
run-tests:
@dart run test --coverage=./coverage --chain-stack-traces
@echo "Converting to lcov.info"
@dart pub global activate coverage > /dev/null
@dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/lcov.info -i ./coverage
coverage-html:
@genhtml coverage/lcov.info -o coverage/html
@open coverage/html/index.html
# $$$$$$$$$ Publishing $$$$$$$$$$
pre-publish:
@dart format lib
@dart analyze
@dart doc
@dart pub publish --dry-run
patch-version:
@dart pub global activate pubversion
@pubversion patch
@dart pub get
VERSION := $(shell grep 'version:' pubspec.yaml | awk '{print $$2}')
publish:
@dart pub publish
@git add .; git commit -m "$(VERSION)"; git push
@gh release create $(VERSION) --generate-notes