-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (43 loc) · 1.77 KB
/
Copy pathMakefile
File metadata and controls
53 lines (43 loc) · 1.77 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
GRAFANA_PYROSCOPE_VERSION := 4.4.0.0
.PHONY: download-async-profiler
download-async-profiler:
./scripts/download-async-profiler.sh -v $(GRAFANA_PYROSCOPE_VERSION) -r https://github.com/grafana/async-profiler -d async-profiler-grafana-fork-dist
#./scripts/download-async-profiler.sh -v 4.0 -r https://github.com/async-profiler/async-profiler -d async-profiler-genuine-dist
.PHONY: clean
clean:
rm -rf agent/build
.PHONY: build
build:
./gradlew shadowJar
.PHONY: publish
publish:
@echo "./gradlew clean :agent:shadowJar publishToSonatype closeAndReleaseSonatypeStagingRepository"
@./gradlew clean :agent:shadowJar publishToSonatype closeAndReleaseSonatypeStagingRepository \
-PsonatypeUsername="$(NEXUS_USERNAME)" \
-PsonatypePassword="$(NEXUS_PASSWORD)" \
-Psigning.secretKeyRingFile="$(NEXUS_GPG_SECRING_FILE)" \
-Psigning.password="$(NEXUS_GPG_PASSWORD)" \
-Psigning.keyId="$(NEXUS_GPG_KEY_ID)"
@echo "https://central.sonatype.org/publish/release/#locate-and-examine-your-staging-repository"
.PHONY: test
test:
./gradlew test
.PHONY: docker-example-base
docker-example-base: build
cp agent/build/libs/pyroscope.jar examples
docker compose -f examples/docker-compose-base.yml build
docker compose -f examples/docker-compose-base.yml up
.PHONY: docker-example-expt
docker-example-expt: build
cp agent/build/libs/pyroscope.jar examples
docker compose -f examples/docker-compose-expt.yml build
docker compose -f examples/docker-compose-expt.yml up
.PHONY: ci-matrix
ci-matrix:
@cd itest && go test -list . -json . | jq -sc '[.[] | select(.Action=="output") | .Output | rtrimstr("\n") | select(startswith("Test"))]'
.PHONY: itest
itest:
cd itest && go test -v -timeout 15m -count=1 ./...
.PHONY: itest/%
itest/%:
cd itest && go test -v -timeout 15m -count=1 -run '^$*$$' ./...