-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (42 loc) · 1.18 KB
/
Copy pathMakefile
File metadata and controls
57 lines (42 loc) · 1.18 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
include constants.mk
tag:
@echo "$(FACT_TAG)"
version:
@echo "$(FACT_VERSION)"
image-name:
@echo "$(FACT_IMAGE_NAME)"
mock-server:
make -C mock-server
image:
$(DOCKER) build \
-f Containerfile \
--build-arg FACT_VERSION=$(FACT_VERSION) \
--build-arg RUST_VERSION=$(RUST_VERSION) \
-t $(FACT_IMAGE_NAME) \
$(CURDIR)
licenses:THIRD_PARTY_LICENSES.html
THIRD_PARTY_LICENSES.html:Cargo.lock
$(if $(shell command -v cargo-about),,$(error cargo-about not found, you can install it with 'cargo install cargo-about --features=cli'))
cargo about generate --format handlebars -o THIRD_PARTY_LICENSES.html about_html.hbs
integration-tests:
make -C tests
performance-tests:
make -C performance-tests
coverage:
cargo llvm-cov --workspace --codecov --output-path codecov.json
clean:
make -C tests clean
rm -f THIRD_PARTY_LICENSES.html
rm -f codecov.json
lint:
cargo clippy --all-targets --all-features -- -D warnings
make -C tests lint
format-check:
cargo fmt --check
make -C fact-ebpf format-check
ruff format --diff tests/
format:
cargo fmt
make -C fact-ebpf format
ruff format tests/
.PHONY: tag mock-server integration-tests image image-name licenses coverage lint clean