-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
48 lines (30 loc) · 895 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
40
41
42
43
44
45
46
47
48
## COMMON COMMANDS
.PHONY: stop
stop:
docker-compose down
## DEVELOPMENT MODE
.PHONY: build-dev dev destroy-dev restart-dev
build-dev:
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build
dev:
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
destroy-dev:
docker-compose -f docker-compose.yml -f docker-compose.dev.yml down -v
restart-dev: destroy-dev build-dev
## PRODUCTION MODE
.PHONY: build run restart
build:
docker-compose up --build -d
run:
docker-compose up -d
restart:
docker-compose down -v
docker-compose up --build -d
## TESTS
.PHONY: test-backend
test-backend:
docker-compose exec backend pytest . $(args)
test-puzzle:
docker-compose exec backend pytest -vv -s ./test/puzzle $(args)
test-leaderboard:
docker-compose exec backend pytest -vv -s ./test/leaderboard $(args)