-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (32 loc) · 792 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
.PHONY: build $(SERVICE)
build:
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.build.yml build $(SERVICE)
.PHONY: up $(SERVICE)
up:
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.build.yml up --build $(SERVICE) -d
.PHONY: deploy $(VERSION)
deploy:
./bin/deploy_stack.sh $(VERSION)
.PHONY: logs
logs:
docker compose logs -f bot
.PHONY: down
down:
docker compose down
.PHONY: test-qutex
test-qutex:
export QUTEX_TESTING=true && \
yarn --cwd services/bot test --verbose && \
unset QUTEX_TESTING
.PHONY: test-nginx
test-nginx:
pytest services/nginx/tests
.PHONY: test
test:
${MAKE} test-qutex
${MAKE} test-nginx
.PHONY: lint
lint:
yarn --cwd services/bot lint
yarn --cwd services/ui lint
flake8 services