-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (36 loc) · 1.1 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
install: build-containers migrate seed
build-containers:
docker compose build
run:
docker compose up api
run-debug:
docker compose up api-debug
run-monitor:
docker compose up monitor
run-monitor-debug:
docker compose up monitor-debug
test:
docker compose run --rm --no-deps rust-cargo make test
lint:
docker compose run --rm --no-deps rust-cargo make lint
unit-test:
docker compose run --rm --no-deps rust-cargo make unit-test
integration-tests:
docker compose run --rm --no-deps rust-cargo make integration-test
test-coverage:
docker compose run --rm --no-deps rust-cargo make test-coverage
migration:
docker compose run --rm rust-cargo make migration name=$(name)
migrate:
docker compose run --rm rust-cargo make migrate
migrate-revert:
docker compose run --rm rust-cargo make migrate-revert
migrate-redo:
docker compose run --rm rust-cargo make migrate-redo
seed:
docker compose run --rm seeder
shell:
docker compose run --rm rust-cargo bash
# Can't delete the volume when PostgreSQL is running.
delete-postgres-volume:
docker compose down db && docker volume rm cron-mon-postgres-data