forked from osuAkatsuki/bancho.py
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (35 loc) · 861 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
49
build:
if [ -d ".dbdata" ]; then sudo chmod -R 755 .dbdata; fi
docker build -t bancho:latest .
run:
docker-compose up bancho mysql redis
run-bg:
docker-compose up -d bancho mysql redis
run-caddy:
caddy run --envfile .env --config ext/Caddyfile
logs:
docker-compose logs -f bancho mysql redis
shell:
pipenv shell
test:
pipenv run pytest -vv tests/
test-dbg:
pipenv run pytest -vv --pdb tests/
lint:
pipenv run pre-commit run --all-files
type-check:
pipenv run mypy .
install:
PIPENV_VENV_IN_PROJECT=1 pipenv install
install-dev:
PIPENV_VENV_IN_PROJECT=1 pipenv install --dev
pipenv run pre-commit install
uninstall:
pipenv --rm
update: # THIS WILL NOT RUN ON WINDOWS DUE TO UVLOOP; USE WSL
pipenv update --dev
make test
pipenv requirements > requirements.txt
pipenv requirements --dev > requirements-dev.txt
clean:
pipenv clean