-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.yaml
More file actions
24 lines (20 loc) · 816 Bytes
/
commands.yaml
File metadata and controls
24 lines (20 loc) · 816 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
format: ## Checks code formatting
script: dart format . ...args
analyze: ## Performs static analysis
script: dart analyze
tests: ## Run all tests
switch:
- report: ## Run all tests with html coverage report
script: |
echo "Generating html report..."
rm -rf coverage
dart test --test-randomize-ordering-seed=random --coverage=coverage
dart run coverage:format_coverage --lcov --in=coverage/test --out=coverage/lcov.info --report-on=lib
genhtml coverage/lcov.info -o coverage/html
open coverage/html/index.html
- default:
script: dart test --test-randomize-ordering-seed=random ...args
check: ## format analyze and tests
script: format && analyze && tests
push: ## Pushes local commits to the remote repository
script: git push ...args