forked from acm19/aws-request-signing-apache-interceptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (37 loc) · 1.42 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
REGION?=us-east-1
ENDPOINT?=http://my-domain.us-east-1.opensearch.localhost.localstack.cloud:4566
SERVICE?=es
.PHONY: verify
.SILENT: verify
verify:
mvn verify
.PHONY: checkstyle
.SILENT: checkstyle
checkstyle:
mvn validate -Pcheckstyle
.PHONY: run_all_samples
.SILENT: run_all_samples
run_all_samples: run_sample run_v5_sample
.PHONY: run_sample
.SILENT: run_sample
run_sample:
mvn test-compile exec:java \
-Dexec.classpathScope=test \
-Dexec.mainClass="io.github.acm19.aws.interceptor.test.AmazonOpenSearchServiceSample" \
-Dexec.args="--endpoint=$(ENDPOINT) --region=$(REGION) --service=$(SERVICE)"
.PHONY: run_v5_sample
.SILENT: run_v5_sample
run_v5_sample:
mvn test-compile exec:java \
-Dexec.classpathScope=test \
-Dexec.mainClass="io.github.acm19.aws.interceptorv5.test.AmazonOpenSearchServiceSample" \
-Dexec.args="--endpoint=$(ENDPOINT) --region=$(REGION) --service=$(SERVICE)"
debug_v5_sample:
mvn exec:exec -Dexec.executable="java" -Dexec.classpathScope=test \
-Dexec.args="-classpath %classpath -Xdebug \
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 \
io.github.acm19.aws.interceptorv5.test.AmazonOpenSearchServiceSample --endpoint=$(ENDPOINT) --region=$(REGION) --service=$(SERVICE)"
.PHONY: validate_renovate_config
.SILENT: validate_renovate_config
validate_renovate_config:
docker run -it --rm -v $$(pwd):/tmp/app renovate/renovate bash -c "cd /tmp/app && renovate-config-validator"