-
Notifications
You must be signed in to change notification settings - Fork 50
/
Makefile
54 lines (42 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: build
build: pre
cargo build
.PHONY: pre
pre:
cargo deny --all-features check licenses
cargo fmt --all -- --check
cargo clippy --all
.PHONY: release
release: pre
cargo build --release
.PHONY: test
test: pre
cargo build --features benchmarking,python,serde_support
cargo test --features benchmarking
.PHONY: test_extended
test_extended: pre
RUSTFLAGS="-C opt-level=3" nice cargo test --features benchmarking -- --ignored --nocapture
.PHONY: bench
bench: pre
cargo bench --features benchmarking
.PHONY: profile
profile:
RUSTFLAGS='-Cforce-frame-pointers' cargo bench --no-run --features benchmarking
.PHONY: fuzz
fuzz:
cargo fuzz run --sanitizer=none --release fuzz_raptorq
.PHONY: build_py
build_py: pre
maturin build
.PHONY: release_py
release_py: pre
maturin build --release
.PHONY: publish_py
publish_py: test_py
docker pull quay.io/pypa/manylinux2014_x86_64
@MATURIN_PYPI_TOKEN=$(shell cat ~/.pypi/raptorq_token) docker run -it --rm -e "MATURIN_PYPI_TOKEN" -v $(shell pwd):/raptorq-ro:ro quay.io/pypa/manylinux2014_x86_64 /raptorq-ro/py_publish.sh
.PHONY: install_py
install_py: pre
maturin develop
test_py: install_py
python3 -m unittest discover