-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
33 lines (23 loc) · 1.16 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
build-dev:
docker build . -f Dockerfile.dev --tag openslides-media-dev
build-tests:
docker build . -f Dockerfile.tests --tag openslides-media-tests
build-dummy-autoupdate:
docker build . -f tests/dummy_autoupdate/Dockerfile.dummy_autoupdate --tag openslides-media-dummy-autoupdate
start-test-setup: | build-dev build-tests build-dummy-autoupdate
docker compose -f docker-compose.test.yml up -d
docker compose -f docker-compose.test.yml exec -T tests wait-for-it "media:9006"
run-tests: | start-test-setup
docker compose -f docker-compose.test.yml exec -T tests pytest
run-dev run-bash: | start-test-setup
docker compose -f docker-compose.test.yml exec tests bash
check-black:
docker compose -f docker-compose.test.yml exec -T tests black --check --diff src/ tests/
check-isort:
docker compose -f docker-compose.test.yml exec -T tests isort --check-only --diff src/ tests/
flake8:
docker compose -f docker-compose.test.yml exec -T tests flake8 src/ tests/
stop-tests:
docker compose -f docker-compose.test.yml down
run-cleanup: | build-dev
docker run -ti --entrypoint="" -v `pwd`/src:/app/src -v `pwd`/tests:/app/tests openslides-media-dev bash -c "./execute-cleanup.sh"