-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathMakefile
47 lines (32 loc) · 1.05 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
COMMIT = $(shell git rev-parse --short HEAD)
DOCKER_EXTRA ?=
DOCKER_BUILDKIT=1
.PHONY: cli/test
cli/test:
cargo test --manifest-path pyroscope_cli/Cargo.toml
.PHONY: lib/test
lib/test:
cargo test --manifest-path Cargo.toml
.PHONY: pprofrs/test
pprofrs/test:
cargo test --manifest-path pyroscope_backends/pyroscope_pprofrs/Cargo.toml
.PHONY: pyspy/test
pyspy/test:
cargo test --manifest-path pyroscope_backends/pyroscope_pyspy/Cargo.toml
.PHONY: rbspy/test
rbspy/test:
cargo test --manifest-path pyroscope_backends/pyroscope_rbspy/Cargo.toml
.PHONY: ffikit/test
ffikit/test:
cargo test --manifest-path pyroscope_ffi/ffikit/Cargo.toml
.PHONY: test
test: cli/test pprofrs/test pyspy/test rbspy/test lib/test ffikit/test
.PHONY: cli/version
cli/version:
@ cd pyroscope_cli && cargo pkgid | cut -d @ -f 2
.PHONY: cli/docker-image
cli/docker-image:
docker buildx build --platform linux/amd64 --load --progress=plain \
-t pyroscope/pyroscope-rs-cli:$(shell make cli/version)-$(COMMIT) \
-f docker/cli.Dockerfile $(DOCKER_EXTRA) .
include ffi.mk