-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
72 lines (60 loc) · 1.42 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
build:
poetry check && \
docker build \
--build-arg INSTALL_GROUPS="main" \
-t chess-pipeline \
.
setup-postgres:
docker stop postgres || true
docker rm postgres || true
docker volume rm chess-pipeline_postgres_data || true
docker compose up -d postgres
ci-e2e-test: setup-postgres
docker compose run --rm chess_pipeline \
--module chess_pipeline \
CopyGames \
--player thibault \
--perf-type bullet \
--since 2024-01-29 \
--single-day \
--local-stockfish
e2e-test: build ci-e2e-test
shell: build-dev
docker compose run \
--rm -it \
--entrypoint=/bin/bash \
chess_pipeline_dev
build-dev:
docker build \
--build-arg INSTALL_GROUPS="main,dev" \
-t chess-pipeline-dev \
.
ci-pyright:
docker compose run \
--rm \
--entrypoint=pyright \
chess_pipeline_dev \
--project /app/pyproject.toml \
/app
pyright: build-dev ci-pyright
ci-pytest:
docker compose run \
--rm \
--entrypoint=pytest \
chess_pipeline_dev \
-vv
pytest: build-dev ci-pytest
ci-coverage:
docker rm chess_pipeline_dev_coverage || true
docker compose run \
--entrypoint=pytest \
--name chess_pipeline_dev_coverage \
chess_pipeline_dev \
-vv \
--cov=/app \
--cov-report term \
--cov-report json:/coverage.json \
--cov-report html:/cov_html
docker cp chess_pipeline_dev_coverage:/coverage.json .
docker cp chess_pipeline_dev_coverage:/cov_html .
coverage: build-dev ci-coverage