-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (50 loc) · 1.16 KB
/
Makefile
File metadata and controls
71 lines (50 loc) · 1.16 KB
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
-include .env
# commands
lint: mypy flake8 flake8.tests
mypy:
@mypy app
flake8:
@flake8 app
flake8.tests:
@flake8 --append-config=flake8.tests.ini tests
test:
@pytest ./tests/unit
test_integration:
@pytest ./tests/integration
isort:
isort --atomic .
# docker: control services
stop:
@docker-compose stop
down:
@docker-compose down -v --remove-orphans
# docker: built containers
build.dev:
@docker-compose build dev
build.test:
@docker-compose build test
build.test_integration:
@docker-compose build test_integration
build.bash:
@docker-compose build bash
build.bash:
@docker-compose build dev
# docker: exec
bash:
@docker-compose run bash sh
# docker: commands
dc.isort: build.bash
@docker-compose run bash make isort;
dc.flake8: stop build.test
@docker-compose run test make flake8;
dc.lint: stop build.test
@docker-compose run test make lint;
dc.test: stop build.test
@docker-compose run test make test;
@docker-compose run test make lint;
@docker-compose stop;
dc.test_integration: stop build.test_integration
@docker-compose run test_integration make test_integration;
@docker-compose stop;
dc.run: stop build.dev
@docker-compose up dev