-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
74 lines (50 loc) · 1.63 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
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
VERSION=1.23.1
default: versioncheck
stop:
./gradlew --stop
clean:
./gradlew clean
stubs:
./gradlew generateProto
compile: stubs
./gradlew build -xtest
build: compile
jars:
./gradlew agentJar proxyJar
tests:
./gradlew --rerun-tasks check
reports:
./gradlew koverMergedHtmlReport
tsconfig:
java -jar ./etc/jars/tscfg-0.9.997.jar --spec etc/config/config.conf --pn io.prometheus.common --cn ConfigVals --dd src/main/java/io/prometheus/common
distro: clean compile jars
#PLATFORMS := linux/amd64,linux/arm64/v8,linux/s390x,linux/ppc64le
PLATFORMS := linux/amd64,linux/arm64/v8,linux/s390x
IMAGE_PREFIX := pambrose/prometheus
docker-push:
# prepare multiarch
docker buildx use buildx 2>/dev/null || docker buildx create --use --name=buildx
docker buildx build --platform ${PLATFORMS} -f ./etc/docker/proxy.df --push -t ${IMAGE_PREFIX}-proxy:latest -t ${IMAGE_PREFIX}-proxy:${VERSION} .
docker buildx build --platform ${PLATFORMS} -f ./etc/docker/agent.df --push -t ${IMAGE_PREFIX}-agent:latest -t ${IMAGE_PREFIX}-agent:${VERSION} .
all: distro docker-push
build-coverage:
./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent package jacoco:report
report-coverage:
./mvnw -DrepoToken=${COVERALLS_TOKEN} clean package test jacoco:report coveralls:report
sonar:
./mvnw sonar:sonar -Dsonar.host.url=http://localhost:9000
site:
./mvnw site
tree:
./gradlew -q dependencies
depends:
./gradlew dependencies
lint:
./gradlew lintKotlinMain
./gradlew lintKotlinTest
versioncheck:
./gradlew dependencyUpdates
refresh:
./gradlew --refresh-dependencies
upgrade-wrapper:
./gradlew wrapper --gradle-version=8.11.1 --distribution-type=bin