forked from ro-i/tumcsbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (45 loc) · 1.12 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
# See LICENSE file for copyright and license details.
# time-sheet - https://github.com/ro-i/time-sheet
# location to install the virtual environment
dest_dir = .
# bot parameters
args =
# run bot; default target
.PHONY: run
run:
@bash -- manage.sh run '$(dest_dir)' $(args)
.PHONY: debug
debug: args = --debug
debug: run
# remove virtual environment
.PHONY: clean
clean:
@bash -- manage.sh clean '$(dest_dir)'
.PHONY: init
init: database virtualenv
# prepare database
.PHONY: database
database:
@bash -- manage.sh database '$(dest_dir)'
# apply database migrations
migrations:
@bash -- manage.sh migrations '$(dest_dir)'
# run only mypy, not all static_analysis
.PHONY: mypy
mypy:
@bash -- manage.sh mypy '$(dest_dir)'
# run static analysis checker
.PHONY: static_analysis
static_analysis:
@bash -- manage.sh static_analysis '$(dest_dir)'
# run tests
.PHONY: tests
tests:
@bash -- manage.sh tests '$(dest_dir)'
.PHONY: upgrade_requirements
upgrade_requirements:
@bash -- manage.sh upgrade_requirements '$(dest_dir)'
# install virtual environment
.PHONY: virtualenv
virtualenv:
@bash -- manage.sh virtualenv '$(dest_dir)'