Current section

113 Versions

Jump to

Compare versions

9 files changed
+51 additions
-62 deletions
  @@ -1,25 +1,6 @@
1 - KAFKA_VERSION ?= 2.2
2 - PROJECT = brod
3 - PROJECT_DESCRIPTION = Kafka client library in Erlang
4 - PROJECT_VERSION = 3.9.5
1 + all: compile
5 2
6 - DEPS = supervisor3 kafka_protocol
7 -
8 - ERLC_OPTS = -Werror +warn_unused_vars +warn_shadow_vars +warn_unused_import +warn_obsolete_guard +debug_info -Dbuild_brod_cli
9 -
10 - dep_supervisor3_commit = 1.1.8
11 - dep_kafka_protocol_commit = 2.3.3
12 - dep_kafka_protocol = git https://github.com/klarna/kafka_protocol.git $(dep_kafka_protocol_commit)
13 -
14 - EDOC_OPTS = preprocess, {macros, [{build_brod_cli, true}]}
15 -
16 - ## Make app the default target
17 - ## To avoid building a release when brod is used as a erlang.mk project's dependency
18 - app::
19 -
20 - include erlang.mk
21 -
22 - compile: vsn-check
3 + compile:
23 4 @rebar3 compile
24 5
25 6 test-env:
  @@ -29,37 +10,25 @@ ut:
29 10 @rebar3 eunit -v --cover_export_name ut-$(KAFKA_VERSION)
30 11
31 12 # version check, eunit and all common tests
32 - t: vsn-check ut
13 + t: ut
33 14 @rebar3 ct -v --cover_export_name ct-$(KAFKA_VERSION)
34 15
35 - vsn-check:
36 - @./scripts/vsn-check.sh $(PROJECT_VERSION)
37 -
38 - distclean:: rebar-clean
39 -
40 - rebar-clean:
16 + clean:
41 17 @rebar3 clean
42 18 @rm -rf _build
43 - @rm -rf doc
19 + @rm -rf ebin deps doc
44 20 @rm -f pipe.testdata
45 21
46 - hex-publish: distclean
22 + hex-publish: clean
47 23 @rebar3 hex publish
48 24 @rebar3 hex docs
49 25
50 26 ## tests that require kafka running at localhost
51 27 INTEGRATION_CTS = brod_cg_commits brod_client brod_compression brod_consumer brod_producer brod_group_subscriber brod_topic_subscriber brod
52 28
53 - ## integration tests
54 - it: ut $(INTEGRATION_CTS:%=it-%)
55 -
56 - $(INTEGRATION_CTS:%=it-%):
57 - @rebar3 ct -v --suite=test/$(subst it-,,$@)_SUITE --cover_export_name $@-$(KAFKA_VERSION)
58 -
59 29 ## build escript and a releas, and copy escript to release bin dir
60 30 brod-cli:
61 - @rebar3 as brod_cli escriptize
62 - @rebar3 as brod_cli release
31 + @rebar3 as brod_cli do compile,escriptize,release
63 32 @cp _build/brod_cli/bin/brod_cli _build/brod_cli/rel/brod/bin/
64 33
65 34 cover:
  @@ -1,4 +1,4 @@
1 - [![Build Status](https://travis-ci.org/klarna/brod.svg)](https://travis-ci.org/klarna/brod) [![Coverage Status](https://coveralls.io/repos/github/klarna/brod/badge.svg?branch=master)](https://coveralls.io/github/klarna/brod?branch=master)
1 + [![Build Status](https://travis-ci.org/klarna/brod.svg?branch=master)](https://travis-ci.org/klarna/brod) [![Coverage Status](https://coveralls.io/repos/github/klarna/brod/badge.svg?branch=master)](https://coveralls.io/github/klarna/brod?branch=master)
2 2
3 3 # Brod - Apache Kafka Client for Erlang/Elixir
unknownerlang.mk
File is too large to be displayed (100 KB limit).
  @@ -1,11 +1,20 @@
1 + {<<"name">>,<<"brod">>}.
2 + {<<"version">>,<<"3.10.0">>}.
3 + {<<"requirements">>,
4 + #{<<"kafka_protocol">> =>
5 + #{<<"app">> => <<"kafka_protocol">>,<<"optional">> => false,
6 + <<"requirement">> => <<"2.3.6">>},
7 + <<"supervisor3">> =>
8 + #{<<"app">> => <<"supervisor3">>,<<"optional">> => false,
9 + <<"requirement">> => <<"1.1.8">>}}}.
1 10 {<<"app">>,<<"brod">>}.
2 - {<<"build_tools">>,[<<"make">>,<<"rebar">>,<<"rebar3">>]}.
11 + {<<"precompiled">>,false}.
3 12 {<<"description">>,<<"Apache Kafka Erlang client library">>}.
4 13 {<<"files">>,
5 14 [<<"src/brod.app.src">>,<<"LICENSE">>,<<"Makefile">>,<<"NOTICE">>,
6 - <<"README.md">>,<<"erlang.mk">>,<<"include/brod.hrl">>,
7 - <<"include/brod_int.hrl">>,<<"rebar.config">>,<<"rebar.config.script">>,
8 - <<"src/brod.erl">>,<<"src/brod_cg_commits.erl">>,<<"src/brod_cli.erl">>,
15 + <<"README.md">>,<<"include/brod.hrl">>,<<"include/brod_int.hrl">>,
16 + <<"rebar.config">>,<<"rebar.config.script">>,<<"src/brod.erl">>,
17 + <<"src/brod_cg_commits.erl">>,<<"src/brod_cli.erl">>,
9 18 <<"src/brod_cli_pipe.erl">>,<<"src/brod_client.erl">>,
10 19 <<"src/brod_consumer.erl">>,<<"src/brod_consumers_sup.erl">>,
11 20 <<"src/brod_group_coordinator.erl">>,<<"src/brod_group_member.erl">>,
  @@ -17,14 +26,4 @@
17 26 <<"src/brod_utils.erl">>]}.
18 27 {<<"licenses">>,[<<"Apache License 2.0">>]}.
19 28 {<<"links">>,[{<<"Github">>,<<"https://github.com/klarna/brod">>}]}.
20 - {<<"name">>,<<"brod">>}.
21 - {<<"requirements">>,
22 - [{<<"kafka_protocol">>,
23 - [{<<"app">>,<<"kafka_protocol">>},
24 - {<<"optional">>,false},
25 - {<<"requirement">>,<<"2.3.3">>}]},
26 - {<<"supervisor3">>,
27 - [{<<"app">>,<<"supervisor3">>},
28 - {<<"optional">>,false},
29 - {<<"requirement">>,<<"1.1.8">>}]}]}.
30 - {<<"version">>,<<"3.9.5">>}.
29 + {<<"build_tools">>,[<<"rebar3">>]}.
  @@ -1,5 +1,5 @@
1 1 {deps, [ {supervisor3, "1.1.8"}
2 - , {kafka_protocol, "2.3.3"}
2 + , {kafka_protocol, "2.3.6"}
3 3 ]}.
4 4 {edoc_opts, [{preprocess, true}, {macros, [{build_brod_cli, true}]}]}.
5 5 {erl_opts, [warn_unused_vars,warn_shadow_vars,warn_unused_import,warn_obsolete_guard,debug_info]}.
  @@ -14,3 +14,4 @@
14 14 {cover_enabled, true}.
15 15 {cover_opts, [verbose]}.
16 16 {cover_export_enabled, true}.
17 + %{ct_readable, false}.
\ No newline at end of file
Loading more files…