Current section

113 Versions

Jump to

Compare versions

8 files changed
+80 additions
-34 deletions
  @@ -1,13 +1,18 @@
1 - KAFKA_VERSION ?= 3.6
1 + KAFKA_VERSION ?= 4.0
2 2 export KAFKA_VERSION
3 +
4 + .PHONY: all
3 5 all: compile
4 6
7 + .PHONY: compile
5 8 compile:
6 9 @rebar3 compile
7 10
11 + .PHONY: lint
8 12 lint:
9 13 @rebar3 lint
10 14
15 + .PHONY: test-env
11 16 test-env:
12 17 @./scripts/setup-test-env.sh
13 18 @mkdir -p ./test/data/ssl
  @@ -15,19 +20,26 @@ test-env:
15 20 @docker cp kafka-1:/localhost-client-key.pem ./test/data/ssl/client-key.pem
16 21 @docker cp kafka-1:/localhost-client-crt.pem ./test/data/ssl/client-crt.pem
17 22
23 + .PHONY: ut
18 24 ut:
19 25 @rebar3 eunit -v --cover_export_name ut-$(KAFKA_VERSION)
20 26
21 - # version check, eunit and all common tests
22 - t: ut
27 + .PHONY: ct
28 + ct:
23 29 @rebar3 ct -v --cover_export_name ct-$(KAFKA_VERSION)
24 30
31 + # version check, eunit and all common tests
32 + .PHONY: t
33 + t: ut ct
34 +
35 + .PHONY: clean
25 36 clean:
26 37 @rebar3 clean
27 38 @rm -rf _build
28 39 @rm -rf ebin deps doc
29 40 @rm -f pipe.testdata
30 41
42 + .PHONY: hex-publish
31 43 hex-publish: clean
32 44 @rebar3 hex publish --repo=hexpm
33 45 @rebar3 hex build
  @@ -35,8 +47,10 @@ hex-publish: clean
35 47 ## tests that require kafka running at localhost
36 48 INTEGRATION_CTS = brod_cg_commits brod_client brod_compression brod_consumer brod_producer brod_group_subscriber brod_topic_subscriber brod
37 49
50 + .PHONY: cover
38 51 cover:
39 52 @rebar3 cover -v
40 53
54 + .PHONY: dialyzer
41 55 dialyzer:
42 56 @rebar3 dialyzer
  @@ -23,5 +23,5 @@
23 23 [{<<"kafka_protocol">>,
24 24 [{<<"app">>,<<"kafka_protocol">>},
25 25 {<<"optional">>,false},
26 - {<<"requirement">>,<<"4.2.5">>}]}]}.
27 - {<<"version">>,<<"4.4.1">>}.
26 + {<<"requirement">>,<<"4.2.6">>}]}]}.
27 + {<<"version">>,<<"4.4.2">>}.
  @@ -60,10 +60,6 @@
60 60
61 61 -define(KAFKA_0_9, {0, 9}).
62 62 -define(KAFKA_0_10, {0, 10}).
63 - -define(KAFKA_0_11, {0, 11}).
64 - -define(KAFKA_1_0, {1, 0}).
65 - -define(KAFKA_1_1, {1, 1}).
66 - -define(LATEST_KAFKA_VERSION, ?KAFKA_1_1).
67 63
68 64 -ifdef(OTP_RELEASE).
69 65 -define(BIND_STACKTRACE(Var), :Var).
  @@ -1,4 +1,4 @@
1 - {deps, [{kafka_protocol, "4.2.5"}]}.
1 + {deps, [{kafka_protocol, "4.2.6"}]}.
2 2 {project_plugins, [{rebar3_lint, "~> 3.2.5"}]}.
3 3 {edoc_opts, [{preprocess, true}]}.
4 4 {erl_opts, [warnings_as_errors, warn_unused_vars,warn_shadow_vars,warn_obsolete_guard,debug_info]}.
  @@ -1,6 +1,6 @@
1 1 {application,brod,
2 2 [{description,"Apache Kafka Erlang client library"},
3 - {vsn,"4.4.1"},
3 + {vsn,"4.4.2"},
4 4 {registered,[]},
5 5 {applications,[kernel,stdlib,kafka_protocol]},
6 6 {env,[]},
Loading more files…