-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (31 loc) · 1.03 KB
/
Copy pathMakefile
File metadata and controls
45 lines (31 loc) · 1.03 KB
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
.PHONY: install test lint format build-rust test-rust build-dotnet test-dotnet build-cpp test-cpp demo docker-build clean
PYTHON ?= python
DOTNET_ENV = DOTNET_CLI_HOME="$(CURDIR)/.dotnet_home" NUGET_PACKAGES="$(CURDIR)/.dotnet_home/.nuget/packages" DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 DOTNET_CLI_TELEMETRY_OPTOUT=1
install:
$(PYTHON) -m pip install -r requirements.txt
$(PYTHON) -m pip install -e .
test:
$(PYTHON) -m pytest
lint:
$(PYTHON) -m ruff check .
format:
$(PYTHON) -m ruff format .
build-rust:
cargo build --manifest-path rust/apex-core/Cargo.toml
test-rust:
cargo test --manifest-path rust/apex-core/Cargo.toml
build-dotnet:
$(DOTNET_ENV) dotnet build dotnet/Apex.sln
test-dotnet:
$(DOTNET_ENV) dotnet test dotnet/Apex.sln
build-cpp:
cmake -S cpp -B build/cpp
cmake --build build/cpp
test-cpp:
ctest --test-dir build/cpp
demo:
$(PYTHON) -m apex_engine.cli demo
docker-build:
docker build -t apex-trading-engine .
clean:
rm -rf .pytest_cache .ruff_cache .dotnet_home .venv311 build dist *.egg-info python/*.egg-info