-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
97 lines (72 loc) · 3.93 KB
/
Makefile
File metadata and controls
97 lines (72 loc) · 3.93 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
build-compose-base:
docker compose -vvv -f docker-compose-core-base.yml build
build-compose-threshold:
docker compose -vvv -f docker-compose-core-base.yml -f docker-compose-core-threshold.yml build
start-compose-threshold:
docker compose -vvv -f docker-compose-core-base.yml -f docker-compose-core-threshold.yml up -d --wait
stop-compose-threshold:
docker compose -vvv -f docker-compose-core-base.yml -f docker-compose-core-threshold.yml down --volumes --remove-orphans
build-compose-centralized:
docker compose -vvv -f docker-compose-core-base.yml -f docker-compose-core-centralized.yml build
start-compose-centralized:
docker compose -vvv -f docker-compose-core-base.yml -f docker-compose-core-centralized.yml up -d --wait
stop-compose-centralized:
docker compose -vvv -f docker-compose-core-base.yml -f docker-compose-core-centralized.yml down --volumes --remove-orphans
start-compose-threshold-telemetry:
docker compose -vvv -f docker-compose-core-base.yml -f docker-compose-core-threshold.yml -f docker-compose-telemetry.yml up -d --wait
stop-compose-threshold-telemetry:
docker compose -vvv -f docker-compose-core-base.yml -f docker-compose-core-threshold.yml -f docker-compose-telemetry.yml down --volumes --remove-orphans
# Test backwards compatibility with LFS files. This will pull the LFS files from git before running the tests.
test-backward-compatibility: pull-lfs-files
cargo test --test backward_compatibility_* -- --include-ignored
# Do not run LFS pull and use locally generated files to test backward compatibility.
test-backward-compatibility-local:
cargo test --test backward_compatibility_* -- --include-ignored --no-capture
clean-backward-compatibility-data:
rm -f backward-compatibility/data/kms.ron
rm -f backward-compatibility/data/kms-grpc.ron
rm -f backward-compatibility/data/threshold-fhe.ron
rm -rf backward-compatibility/data/0_11_0
rm -rf backward-compatibility/data/0_11_1
rm -rf backward-compatibility/data/0_13_0
rm -rf backward-compatibility/data/0_13_10
generate-backward-compatibility-v0.11.0:
cd backward-compatibility/generate-v0.11.0 && cargo run --release
generate-backward-compatibility-v0.11.1:
cd backward-compatibility/generate-v0.11.1 && cargo run --release
generate-backward-compatibility-v0.13.0:
cd backward-compatibility/generate-v0.13.0 && cargo run --release
generate-backward-compatibility-v0.13.10:
cd backward-compatibility/generate-v0.13.10 && cargo run --release
generate-backward-compatibility-all: clean-backward-compatibility-data generate-backward-compatibility-v0.11.0 generate-backward-compatibility-v0.11.1 generate-backward-compatibility-v0.13.0 generate-backward-compatibility-v0.13.10
@echo "Generated backward compatibility data for all versions"
# Test material generation targets
generate-test-material-all:
cargo run -p generate-test-material --features slow_tests -- --output ./test-material --verbose all
generate-test-material-testing:
@echo "Generating testing material..."
cargo run -p generate-test-material -- --output ./test-material --verbose testing
generate-test-material-default:
cargo run -p generate-test-material --features slow_tests -- --output ./test-material --verbose default
validate-test-material:
cargo run -p generate-test-material -- --output ./test-material --verbose validate
clean-test-material:
cargo run -p generate-test-material -- --output ./test-material --verbose clean
# Check if Git LFS is installed and enabled
check-git-lfs:
@if git lfs version > /dev/null 2>&1; then \
echo "Git LFS is installed and enabled."; \
else \
echo "Error: Git LFS is not installed or not enabled. Please"; \
exit 1; \
fi
pull-lfs-files: check-git-lfs
git lfs pull
linting-all:
cargo clippy --all-targets --all-features -- -D warnings
linting-package:
@if [ -z "$(PACKAGE)" ]; then \
echo "Error: PACKAGE is not set. Usage: make clippy-package PACKAGE=<package-name>"; \
exit 1; \
fi
cargo clippy --all-targets --all-features --package $(PACKAGE) -- -D warnings