@@ -15,6 +15,7 @@ KAFKASQL_DOCKERFILE ?= Dockerfile.kafkasql.jvm
15
15
IMAGE_REPO ?= docker.io
16
16
IMAGE_TAG ?= latest
17
17
SKIP_TESTS ?= false
18
+ INTEGRATION_TESTS_PROFILE ?= ci
18
19
BUILD_FLAGS ?=
19
20
20
21
@@ -23,7 +24,7 @@ BUILD_FLAGS ?=
23
24
help :
24
25
@echo " "
25
26
@echo " Please use \` make <target>' where <target> is one of:-"
26
- @grep -E ' ^\.PHONY: [a-zA-Z_-]+ .*?## .*$$' $(MAKEFILE_LIST ) | awk ' BEGIN {FS = "(: |##)"}; {printf "\033[36m%-30s \033[0m %s\n", $$2, $$3}'
27
+ @grep -E ' ^\.PHONY: [a-zA-Z_-]+ .*?## .*$$' $(MAKEFILE_LIST ) | awk ' BEGIN {FS = "(: |##)"}; {printf "\033[36m%-42s \033[0m %s\n", $$2, $$3}'
27
28
@echo " "
28
29
@echo " => SKIP_TESTS: You can skip the tests for the builds by overriding the value of this variable to true. The Default value is 'false'"
29
30
@echo " => BUILD_FLAGS: You can pass additional build flags by overriding the value of this variable. By Default, it doesn't pass any additional flags."
@@ -222,6 +223,100 @@ build-project:
222
223
# build everything without running tests in order to be able to build container images
223
224
CURRENT_ENV=mas mvn clean install -Pprod -Pno-docker -Dskip.yarn -Psql -Pmultitenancy -Dmaven.javadoc.skip=true --no-transfer-progress -DtrimStackTrace=false -DskipTests
224
225
226
+ .PHONY : build-integration-tests-common # # Builds integration-tests-common
227
+ build-integration-tests-common :
228
+ @echo " ----------------------------------------------------------------------"
229
+ @echo " Building Integration Tests Common "
230
+ @echo " ----------------------------------------------------------------------"
231
+ ./mvnw install -Pintegration-tests -pl integration-tests/integration-tests-common
232
+
233
+ .PHONY : run-ui-tests # # Runs sql integration tests
234
+ run-ui-tests : build-integration-tests-common
235
+ @echo " ----------------------------------------------------------------------"
236
+ @echo " Running UI Tests "
237
+ @echo " ----------------------------------------------------------------------"
238
+ ./mvnw verify -Pintegration-tests -Pui -Pinmemory -pl integration-tests/testsuite -Dmaven.javadoc.skip=true --no-transfer-progress -DtrimStackTrace=false
239
+
240
+ .PHONY : run-sql-integration-tests # # Runs sql integration tests
241
+ run-sql-integration-tests : build-integration-tests-common
242
+ @echo " ----------------------------------------------------------------------"
243
+ @echo " Running Sql Integration Tests "
244
+ @echo " ----------------------------------------------------------------------"
245
+ ./mvnw verify -Pintegration-tests -P$(INTEGRATION_TESTS_PROFILE ) -Psql -pl integration-tests/testsuite -Dmaven.javadoc.skip=true --no-transfer-progress
246
+
247
+ .PHONY : run-sql-clustered-integration-tests # # Runs sql clustered integration tests
248
+ run-sql-clustered-integration-tests : build-integration-tests-common
249
+ @echo " ----------------------------------------------------------------------"
250
+ @echo " Running Sql clustered Integration Tests "
251
+ @echo " ----------------------------------------------------------------------"
252
+ ./mvnw verify -Pintegration-tests -Pclustered -Psql -pl integration-tests/testsuite -Dmaven.javadoc.skip=true --no-transfer-progress
253
+
254
+ .PHONY : run-kafkasql-integration-tests # # Runs kafkasql integration tests
255
+ run-kafkasql-integration-tests : build-integration-tests-common
256
+ @echo " ----------------------------------------------------------------------"
257
+ @echo " Running KafkaSql Integration Tests "
258
+ @echo " ----------------------------------------------------------------------"
259
+ ./mvnw verify -Pintegration-tests -P$(INTEGRATION_TESTS_PROFILE ) -Pkafkasql -pl integration-tests/testsuite -Dmaven.javadoc.skip=true --no-transfer-progress
260
+
261
+ .PHONY : run-kafkasql-clustered-integration-tests # # Runs kafkasql clustered integration tests
262
+ run-kafkasql-clustered-integration-tests : build-integration-tests-common
263
+ @echo " ----------------------------------------------------------------------"
264
+ @echo " Running KafkaSql clustered Integration Tests "
265
+ @echo " ----------------------------------------------------------------------"
266
+ ./mvnw verify -Pintegration-tests -Pclustered -Pkafkasql -pl integration-tests/testsuite -Dmaven.javadoc.skip=true --no-transfer-progress
267
+
268
+ .PHONY : run-multitenancy-integration-tests # # Runs multitenancy integration tests
269
+ run-multitenancy-integration-tests : build-integration-tests-common
270
+ @echo " ----------------------------------------------------------------------"
271
+ @echo " Running Multitenancy Integration Tests "
272
+ @echo " ----------------------------------------------------------------------"
273
+ ./mvnw verify -Pintegration-tests -Pmultitenancy -Psql -pl integration-tests/testsuite -Dmaven.javadoc.skip=true --no-transfer-progress -DtrimStackTrace=false
274
+
275
+ .PHONY : run-sql-migration-integration-tests # # Runs sql migration integration tests
276
+ run-sql-migration-integration-tests : build-integration-tests-common
277
+ @echo " ----------------------------------------------------------------------"
278
+ @echo " Running SQL Migration Integration Tests "
279
+ @echo " ----------------------------------------------------------------------"
280
+ ./mvnw verify -Pintegration-tests -Pmigration -Psql -pl integration-tests/testsuite -Dmaven.javadoc.skip=true --no-transfer-progress
281
+
282
+ .PHONY : run-kafkasql-migration-integration-tests # # Runs kafkasql migration integration tests
283
+ run-kafkasql-migration-integration-tests : build-integration-tests-common
284
+ @echo " ----------------------------------------------------------------------"
285
+ @echo " Running KafkaSQL Migration Integration Tests "
286
+ @echo " ----------------------------------------------------------------------"
287
+ ./mvnw verify -Pintegration-tests -Pmigration -Pkafkasql -pl integration-tests/testsuite -Dmaven.javadoc.skip=true --no-transfer-progress
288
+
289
+ .PHONY : run-sql-auth-integration-tests # # Runs sql auth integration tests
290
+ run-sql-auth-integration-tests : build-integration-tests-common
291
+ @echo " ----------------------------------------------------------------------"
292
+ @echo " Running SQL Auth Integration Tests "
293
+ @echo " ----------------------------------------------------------------------"
294
+ ./mvnw verify -Pintegration-tests -Pauth -Psql -pl integration-tests/testsuite -Dmaven.javadoc.skip=true --no-transfer-progress
295
+
296
+ .PHONY : run-kafkasql-auth-integration-tests # # Runs kafkasql auth integration tests
297
+ run-kafkasql-auth-integration-tests : build-integration-tests-common
298
+ @echo " ----------------------------------------------------------------------"
299
+ @echo " Running KafkaSQL Auth Integration Tests "
300
+ @echo " ----------------------------------------------------------------------"
301
+ ./mvnw verify -Pintegration-tests -Pauth -Pkafkasql -pl integration-tests/testsuite -Dmaven.javadoc.skip=true --no-transfer-progress
302
+
303
+ .PHONY : run-sql-legacy-tests # # Runs sql legacy tests
304
+ run-sql-legacy-tests : build-integration-tests-common
305
+ @echo " ----------------------------------------------------------------------"
306
+ @echo " Running SQL Legacy Tests "
307
+ @echo " ----------------------------------------------------------------------"
308
+ ./mvnw verify -Pintegration-tests -P$(INTEGRATION_TESTS_PROFILE ) -Pkafkasql -pl integration-tests/legacy-tests -Dmaven.javadoc.skip=true --no-transfer-progress
309
+
310
+ .PHONY : run-kafkasql-legacy-tests # # Runs kafkasql legacy tests
311
+ run-kafkasql-legacy-tests : build-integration-tests-common
312
+ @echo " ----------------------------------------------------------------------"
313
+ @echo " Running KafkaSQL Legacy Tests "
314
+ @echo " ----------------------------------------------------------------------"
315
+ ./mvnw verify -Pintegration-tests -P$(INTEGRATION_TESTS_PROFILE ) -Psql -pl integration-tests/legacy-tests -Dmaven.javadoc.skip=true --no-transfer-progress
316
+
317
+ .PHONY : integration-tests # # Runs all integration tests [SKIP_TESTS, BUILD_FLAGS]
318
+ integration-tests : build-all build-integration-tests-common run-ui-tests run-sql-integration-tests run-sql-clustered-integration-tests run-kafkasql-integration-tests run-kafkasql-clustered-integration-tests run-multitenancy-integration-tests run-sql-migration-integration-tests run-kafkasql-migration-integration-tests run-sql-auth-integration-tests run-kafkasql-auth-integration-tests run-sql-legacy-tests run-kafkasql-legacy-tests
319
+
225
320
# Please declare your targets as .PHONY in the format shown below, so that the 'make help' parses the information correctly.
226
321
#
227
322
# .PHONY: <target-name> ## Description of what target does
0 commit comments