-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (32 loc) · 817 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
include .env
export
clean:
- rm -rf .venv
setup:
- python3 -m venv .venv; \
. .venv/bin/activate; \
pip install -r requirements-dev.txt; \
pip install -r requirements.txt
update:
- . .venv/bin/activate; \
pip install -r requirements-dev.txt; \
pip install -r requirements.txt
format:
- . .venv/bin/activate; \
isort -rc .; \
black .
test:
- . .venv/bin/activate; \
unittest-parallel -t . -s mcad
test-file:
- . .venv/bin/activate; \
python -m unittest mcad/tests/$(TEST_FILE)
run:
- . .venv/bin/activate; \
python bot.py
docker-build:
docker build -t $(DOCKER_REPO_USER)/mc-aws-discord-assistant:$(TAG) .
docker-run:
- docker run --rm --env-file .env $(DOCKER_REPO_USER)/mc-aws-discord-assistant:$(TAG)
docker-push:
- docker push $(DOCKER_REPO_USER)/mc-aws-discord-assistant:$(TAG)