-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
58 lines (47 loc) · 1.39 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
build: binaries _build
_build:
poetry build
.PHONY: clean
clean:
poetry env remove python
.PHONY: lint
lint:
poetry run black aikido_zen/
poetry run pylint aikido_zen/
install: binaries
pip install poetry
poetry install
dev_install: install _dev_install
_dev_install:
poetry install --with=dev
.PHONY: test
test:
poetry run pytest aikido_zen/
.PHONY: end2end
end2end:
poetry run pytest end2end/
.PHONY: cov
cov:
poetry run pytest aikido_zen/ --cov=aikido_zen --cov-report=xml
.PHONY: benchmark
benchmark:
k6 run -q ./benchmarks/flask-mysql-benchmarks.js
BASE_URL = https://github.com/AikidoSec/zen-internals/releases/download/v0.1.34
FILES = \
libzen_internals_aarch64-apple-darwin.dylib \
libzen_internals_aarch64-apple-darwin.dylib.sha256sum \
libzen_internals_aarch64-unknown-linux-gnu.so \
libzen_internals_aarch64-unknown-linux-gnu.so.sha256sum \
libzen_internals_x86_64-apple-darwin.dylib \
libzen_internals_x86_64-apple-darwin.dylib.sha256sum \
libzen_internals_x86_64-pc-windows-gnu.dll \
libzen_internals_x86_64-pc-windows-gnu.dll.sha256sum \
libzen_internals_x86_64-unknown-linux-gnu.so \
libzen_internals_x86_64-unknown-linux-gnu.so.sha256sum
binaries: binaries_make_dir $(addprefix aikido_zen/lib/, $(FILES))
binaries_make_dir:
rm -rf aikido_zen/lib
mkdir -p aikido_zen/lib/
aikido_zen/lib/%:
@echo "Downloading $*..."
curl -L -o $@ $(BASE_URL)/$*