forked from grafana/pyroscope-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (36 loc) · 1.44 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
.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 "Now you go https://s01.oss.sonatype.org, close the temporarly created staging repository and release it"
@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
ITEST_SERVICE ?=
.PHONY: itest
itest:
docker compose -f docker-compose-itest.yaml up --build --force-recreate -d pyroscope $(ITEST_SERVICE)
cd itest/query && go run . $(ITEST_SERVICE)
docker compose -f docker-compose-itest.yaml down pyroscope $(ITEST_SERVICE)