-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 1.29 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
SHELL=/bin/bash
TEST=""
.PHONY: test qtest test-ci build dev-install py-lint py-lint-install synapse
py-lint-install:
pip install black isort
py-lint:
black device/
isort --profile=black device/
.synapse:
docker compose -f ./synapse/docker-compose.yml up synapse -d --force-recreate --build --wait
touch .synapse
synapse:
rm -f .synapse > /dev/null
$(MAKE) .synapse
element:
docker compose -f ./synapse/docker-compose.yml up element -d --force-recreate
taskiq-matrix.dev.env: .synapse
@echo "Creating synapse environment file"
python test-config/prepare-test.py
test: taskiq-matrix.dev.env
. taskiq-matrix.dev.env && pytest -k ${TEST} -s --cov-config=.coveragerc --cov=taskiq_matrix -v --asyncio-mode=auto --cov-report=lcov --cov-report=term --benchmark-compare --benchmark-autosave tests/
qtest: taskiq-matrix.dev.env
. taskiq-matrix.dev.env && pytest -k ${TEST} -s --cov-config=.coveragerc --cov=taskiq_matrix --asyncio-mode=auto --cov-report=lcov tests/
test-ci:
docker compose -f docker-compose.test.yml up synapse --build --force-recreate -d --wait
docker compose -f docker-compose.test.yml up tester --build --force-recreate --exit-code-from tester
docker compose -f docker-compose.test.yml down
build:
docker compose -f docker-compose.test.yml build
dev-install:
pip install -e .[dev]