-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (32 loc) · 1.09 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
.DEFAULT_GOAL := help
.PHONY: bundle-update
bundle-update: ## Run `bundle update` on gem and all subgems
bundle update
cd driver/riverqueue-activerecord && bundle update
cd driver/riverqueue-sequel && bundle update
# Looks at comments using ## on targets and uses them to produce a help output.
.PHONY: help
help: ALIGN=14
help: ## Print this message
@awk -F ': .*## ' -- "/^[^':]+: .*## /"' { printf "'$$(tput bold)'%-$(ALIGN)s'$$(tput sgr0)' %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
.PHONY: lint
lint: standardrb ## Run linter (standardrb) on gem and all subgems
.PHONY: rspec
rspec: spec
.PHONY: spec
spec:
bundle exec rspec
cd driver/riverqueue-activerecord && bundle exec rspec
cd driver/riverqueue-sequel && bundle exec rspec
.PHONY: standardrb
standardrb:
bundle exec standardrb --fix
cd driver/riverqueue-activerecord && bundle exec standardrb --fix
cd driver/riverqueue-sequel && bundle exec standardrb --fix
.PHONY: steep
steep:
bundle exec steep check
.PHONY: test
test: spec ## Run test suite (rspec) on gem and all subgems
.PHONY: type-check
type-check: steep ## Run type check with Steep