-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
85 lines (58 loc) · 1.72 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
DOCKER-RUN = docker compose --profile console run --rm
.DEFAULT_GOAL := up
build:
git submodule update --init
docker compose build
up:
docker compose up || true
down:
docker compose down
prompt:
$(DOCKER-RUN) console bash
aprompt:
$(DOCKER-RUN) aconsole bash
console:
$(DOCKER-RUN) console rails console
aconsole:
$(DOCKER-RUN) aconsole rails console
migrate:
$(DOCKER-RUN) console rails db:migrate
amigrate:
$(DOCKER-RUN) aconsole rails db:migrate
rollback:
$(DOCKER-RUN) console rails db:rollback
locales:
$(DOCKER-RUN) console i18n-tasks normalize
api-docs:
$(DOCKER-RUN) console rake api:docs:generate
api-specs:
$(DOCKER-RUN) console rspec engines/bops_api/spec
admin-specs:
$(DOCKER-RUN) console rspec engines/bops_admin/spec
config-specs:
$(DOCKER-RUN) console rspec engines/bops_config/spec
core-specs:
$(DOCKER-RUN) console rspec engines/bops_core/spec
uploads-specs:
$(DOCKER-RUN) console rspec engines/bops_uploads/spec
engine-specs: api-specs admin-specs config-specs core-specs uploads-specs
rspec:
$(DOCKER-RUN) console rspec
cucumber:
$(DOCKER-RUN) console cucumber
guard:
$(DOCKER-RUN) console $(BUNDLE-EXEC) guard
db-prompt:
$(DOCKER-RUN) console psql postgres://postgres:postgres@db
lint:
$(DOCKER-RUN) console rake rubocop biome erblint
lint-auto-correct:
$(DOCKER-RUN) console rake rubocop:fix biome:fix erblint:fix
lint-locales:
$(DOCKER-RUN) console i18n-tasks normalize
# this regenerates the Rubocop TODO and ensures that cops aren't
# turned off over a max number of file offenses. Note: we don't want
# to run this within Docker so we can avoid a write-projected file (by
# the Docker user).
update-rubocop:
rubocop -A --auto-gen-config --auto-gen-only-exclude --exclude-limit 2000