-
-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 647 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (23 loc) · 647 Bytes
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
clean:
rm -rf .venv .pytest_cache .tox .mypy_cache dist build
install:
poetry install
poetry run pre-commit install --install-hooks
server:
poetry run tgtg_server
start:
poetry run scanner -d --base_url http://localhost:8080
test:
poetry run pytest -v -m "not tgtg_api" --cov=tgtg_scanner
lint:
poetry run pre-commit run -a
tox:
tox
executable:
rm -rf ./build ./dist
poetry run pyinstaller ./scanner.spec
cp ./config.sample.ini ./dist/config.ini
zip -j ./dist/scanner.zip ./dist/*
images:
docker build -f ./docker/Dockerfile -t tgtg-scanner:latest .
docker build -f ./docker/Dockerfile.alpine -t tgtg-scanner:latest-alpine .