forked from unboxed/bops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (28 loc) · 930 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
36
37
38
39
DOCKER-RUN = docker-compose run --rm
DOCKER-E2E = docker-compose -f docker-compose.yml -f docker-compose.e2e.yml
DB-RUN = docker-compose run --rm db
BUNDLE-EXEC = bundle exec
.DEFAULT_GOAL := up
build:
git submodule update --init
docker-compose build
up:
docker-compose up
prompt:
$(DOCKER-RUN) web bash
aprompt:
$(DOCKER-RUN) applicants bash
guard:
$(DOCKER-RUN) web $(BUNDLE-EXEC) guard
db-prompt:
$(DB-RUN) psql postgres://postgres:postgres@db
lint:
$(DOCKER-RUN) web $(BUNDLE-EXEC) rubocop
e2e:
$(DOCKER-E2E) run --rm --service-ports --use-aliases web $(BUNDLE-EXEC) cucumber --profile e2e
# 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