forked from nyxx-discord/nyxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 770 Bytes
/
Makefile
File metadata and controls
26 lines (18 loc) · 770 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
help:
@fgrep -h "##" $(MAKEFILE_LIST) | sed -e 's/\(\:.*\#\#\)/\:\ /' | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
format: ## Run dart format
dart format -l 160 .
fix: ## Run dart fix
dart fix --apply
analyze: ## Run dart analyze
dart analyze
unit-tests: ## Run unit tests
dart run test test/unit/**
integration-tests: ## Run integrations tests
ifndef TEST_TOKEN $(error TEST_TOKEN is undefined) endif \
ifndef TEST_TEXT_CHANNEL $(error TEST_TEXT_CHANNEL is undefined) endif \
ifndef TEST_GUILD $(error TEST_GUILD is undefined) endif \
dart run test test/integration/**
fix-project: analyze fix format ## Fix whole project
test-project: unit-tests integration-tests ## Run all tests
check-project: fix-project test-project ## Run all checks